Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / cryptodatahub / default.nix
blobe19a4137e4f3dc7ce3c0c319767ed461f407b4a3
1 { lib
2 , asn1crypto
3 , attrs
4 , beautifulsoup4
5 , buildPythonPackage
6 , fetchFromGitLab
7 , pathlib2
8 , pyfakefs
9 , python-dateutil
10 , pythonOlder
11 , setuptools
12 , six
13 , unittestCheckHook
14 , urllib3
17 buildPythonPackage rec {
18   pname = "cryptodatahub";
19   version = "0.12.2";
20   pyproject = true;
22   disabled = pythonOlder "3.7";
24   src = fetchFromGitLab {
25     owner = "coroner";
26     repo = "cryptodatahub";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-zVHHBQYcl26zTtXPAs/AgKOojKQORu08rpkfY0l1zjM=";
29   };
31   postPatch = ''
32     substituteInPlace requirements.txt  \
33       --replace-warn "attrs>=20.3.0,<22.0.1" "attrs>=20.3.0"
34   '';
36   nativeBuildInputs = [
37     setuptools
38   ];
40   propagatedBuildInputs = [
41     asn1crypto
42     attrs
43     pathlib2
44     python-dateutil
45     six
46     urllib3
47   ];
49   nativeCheckInputs = [
50     beautifulsoup4
51     pyfakefs
52     unittestCheckHook
53   ];
55   pythonImportsCheck = [
56     "cryptodatahub"
57   ];
60   preCheck = ''
61     # failing tests
62     rm test/updaters/test_common.py
63     # Tests require network access
64     rm test/common/test_utils.py
65   '';
67   meta = with lib; {
68     description = "Repository of cryptography-related data";
69     homepage = "https://gitlab.com/coroner/cryptodatahub";
70     changelog = "https://gitlab.com/coroner/cryptodatahub/-/blob/${version}/CHANGELOG.rst";
71     license = licenses.mpl20;
72     maintainers = with maintainers; [ ];
73   };