blob: c793dbd53b83b6b4ec1ed8482171bf16233c6df3 (
plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{
lib,
asn1crypto,
attrs,
beautifulsoup4,
buildPythonPackage,
fetchFromGitLab,
pyfakefs,
python-dateutil,
setuptools,
setuptools-scm,
unittestCheckHook,
urllib3,
}:
buildPythonPackage rec {
pname = "cryptodatahub";
version = "1.0.2";
pyproject = true;
src = fetchFromGitLab {
owner = "coroner";
repo = "cryptodatahub";
tag = "v${version}";
hash = "sha256-DQspaa9GsnRjETKUca2i91iBPbT4qATmKiL8M0nBP/A=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
asn1crypto
attrs
python-dateutil
urllib3
];
nativeCheckInputs = [
beautifulsoup4
pyfakefs
unittestCheckHook
];
pythonImportsCheck = [ "cryptodatahub" ];
preCheck = ''
# failing tests
rm test/updaters/test_common.py
# Tests require network access
rm test/common/test_utils.py
'';
meta = {
description = "Repository of cryptography-related data";
homepage = "https://gitlab.com/coroner/cryptodatahub";
changelog = "https://gitlab.com/coroner/cryptodatahub/-/blob/${src.tag}/CHANGELOG.rst";
license = lib.licenses.mpl20;
teams = with lib.teams; [ ngi ];
};
}
|