blob: f251b47c60862a9870dc6d76015acae9df05ccb0 (
plain) (
blame)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, zeep
}:
buildPythonPackage rec {
pname = "python-stdnum";
version = "1.19";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-Ez7IL1Y5DqdMGQVp6Y8vsUuGmAix1UeFcI8i0P6tiz8=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=stdnum --cov-report=term-missing:skip-covered --cov-report=html" ""
'';
nativeCheckInputs = [
pytestCheckHook
];
passthru.optional-dependencies = {
SOAP = [
zeep
];
};
pythonImportsCheck = [
"stdnum"
];
meta = with lib; {
description = "Python module to handle standardized numbers and codes";
homepage = "https://arthurdejong.org/python-stdnum/";
changelog = "https://github.com/arthurdejong/python-stdnum/blob/${version}/ChangeLog";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ johbo ];
};
}
|