nixpkgs/pkgs/development/python-modules/python-stdnum/default.nix
2023-01-05 01:10:25 +01:00

35 lines
657 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-stdnum";
version = "1.18";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-vMdj2cSa4j2l0remhtX9He7J2QUTQRYKENGscjomvsA=";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"stdnum"
];
meta = with lib; {
description = "Python module to handle standardized numbers and codes";
homepage = "https://arthurdejong.org/python-stdnum/";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ johbo ];
};
}