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.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "arthurdejong";
18 repo = "python-stdnum";
19 tag = version;
20 hash = "sha256-9m4tO9TX9lV4V3wTkMFDj0Mc+jl4bKsHM/adeF3cBTE=";
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 = with lib; {
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 = licenses.lgpl21Plus;
41 maintainers = with maintainers; [ johbo ];
42 };
43}