summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-stdnum/default.nix
blob: 51ac732b17290a3792856d0ebc21f77125239f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ 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 ];
  };
}