evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / cryptodatahub / default.nix
blobba5d3a0fcf1c645e5576770f4cf21cc1024ee843
2   lib,
3   asn1crypto,
4   attrs,
5   beautifulsoup4,
6   buildPythonPackage,
7   fetchFromGitLab,
8   pathlib2,
9   pyfakefs,
10   python-dateutil,
11   pythonOlder,
12   setuptools,
13   six,
14   unittestCheckHook,
15   urllib3,
18 buildPythonPackage rec {
19   pname = "cryptodatahub";
20   version = "0.12.5";
21   pyproject = true;
23   disabled = pythonOlder "3.7";
25   src = fetchFromGitLab {
26     owner = "coroner";
27     repo = "cryptodatahub";
28     rev = "refs/tags/v${version}";
29     hash = "sha256-jYMzvh4tgfLS7Za0MYHbWbczptAvENfzfTEV9Drlfto=";
30   };
32   postPatch = ''
33     substituteInPlace requirements.txt  \
34       --replace-fail "attrs>=20.3.0,<22.0.1" "attrs>=20.3.0"
35   '';
37   build-system = [ setuptools ];
39   dependencies = [
40     asn1crypto
41     attrs
42     pathlib2
43     python-dateutil
44     six
45     urllib3
46   ];
48   nativeCheckInputs = [
49     beautifulsoup4
50     pyfakefs
51     unittestCheckHook
52   ];
54   pythonImportsCheck = [ "cryptodatahub" ];
56   preCheck = ''
57     # failing tests
58     rm test/updaters/test_common.py
59     rm test/common/test_key.py
60     # Tests require network access
61     rm test/common/test_utils.py
62   '';
64   meta = with lib; {
65     description = "Repository of cryptography-related data";
66     homepage = "https://gitlab.com/coroner/cryptodatahub";
67     changelog = "https://gitlab.com/coroner/cryptodatahub/-/blob/${version}/CHANGELOG.rst";
68     license = licenses.mpl20;
69     maintainers = [ ];
70   };