nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 909 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pytest-cov-stub, 7 setuptools, 8 zeep, 9}: 10 11buildPythonPackage rec { 12 pname = "python-stdnum"; 13 version = "2.2"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "arthurdejong"; 18 repo = "python-stdnum"; 19 tag = version; 20 hash = "sha256-X/VmD9bgOfs58m4YtmIdsYI5B4T0a68Wiiq2Ae27A8w="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 optional-dependencies = { 26 SOAP = [ zeep ]; 27 }; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 pytest-cov-stub 32 ]; 33 34 pythonImportsCheck = [ "stdnum" ]; 35 36 meta = { 37 description = "Python module to handle standardized numbers and codes"; 38 homepage = "https://arthurdejong.org/python-stdnum/"; 39 changelog = "https://github.com/arthurdejong/python-stdnum/blob/${version}/ChangeLog"; 40 license = lib.licenses.lgpl21Plus; 41 maintainers = with lib.maintainers; [ johbo ]; 42 }; 43}