nixpkgs/pkgs/development/python-modules/python-stdnum/default.nix
2022-11-05 01:22:29 +01:00

34 lines
657 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-stdnum";
version = "1.17";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-N04rXhORLM2/ULCyP8osPgUxF0gFwy104UXzd1Yyg0A=";
};
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 ];
};
}