1{
2 lib,
3 asn1crypto,
4 attrs,
5 beautifulsoup4,
6 buildPythonPackage,
7 fetchFromGitLab,
8 pyfakefs,
9 python-dateutil,
10 pythonOlder,
11 setuptools,
12 setuptools-scm,
13 unittestCheckHook,
14 urllib3,
15}:
16
17buildPythonPackage rec {
18 pname = "cryptodatahub";
19 version = "1.0.0";
20 pyproject = true;
21
22 disabled = pythonOlder "3.9";
23
24 src = fetchFromGitLab {
25 owner = "coroner";
26 repo = "cryptodatahub";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-taYpSYkfucc9GQpVDiAZgCt/D3Akld20LkFEhsdKH0Q=";
29 };
30
31 build-system = [
32 setuptools
33 setuptools-scm
34 ];
35
36 dependencies = [
37 asn1crypto
38 attrs
39 python-dateutil
40 urllib3
41 ];
42
43 nativeCheckInputs = [
44 beautifulsoup4
45 pyfakefs
46 unittestCheckHook
47 ];
48
49 pythonImportsCheck = [ "cryptodatahub" ];
50
51 preCheck = ''
52 # failing tests
53 rm test/updaters/test_common.py
54 rm test/common/test_key.py
55 # Tests require network access
56 rm test/common/test_utils.py
57 '';
58
59 meta = with lib; {
60 description = "Repository of cryptography-related data";
61 homepage = "https://gitlab.com/coroner/cryptodatahub";
62 changelog = "https://gitlab.com/coroner/cryptodatahub/-/blob/${version}/CHANGELOG.rst";
63 license = licenses.mpl20;
64 maintainers = [ ];
65 };
66}