Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / python-stdnum / default.nix
blobf251b47c60862a9870dc6d76015acae9df05ccb0
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 , pythonOlder
6 , zeep
7 }:
9 buildPythonPackage rec {
10   pname = "python-stdnum";
11   version = "1.19";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-Ez7IL1Y5DqdMGQVp6Y8vsUuGmAix1UeFcI8i0P6tiz8=";
19   };
21   postPatch = ''
22     substituteInPlace setup.cfg \
23       --replace " --cov=stdnum --cov-report=term-missing:skip-covered --cov-report=html" ""
24   '';
26   nativeCheckInputs = [
27     pytestCheckHook
28   ];
30   passthru.optional-dependencies = {
31     SOAP = [
32       zeep
33     ];
34   };
36   pythonImportsCheck = [
37     "stdnum"
38   ];
40   meta = with lib; {
41     description = "Python module to handle standardized numbers and codes";
42     homepage = "https://arthurdejong.org/python-stdnum/";
43     changelog = "https://github.com/arthurdejong/python-stdnum/blob/${version}/ChangeLog";
44     license = licenses.lgpl21Plus;
45     maintainers = with maintainers; [ johbo ];
46   };