blob: 7cd535eea98f8a37330853821ac743c9f81a6b36 (
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
63
64
65
66
67
68
|
{
lib,
asn1crypto,
attrs,
buildPythonPackage,
cryptodatahub,
fetchFromGitLab,
fetchpatch2,
pyfakefs,
setuptools,
setuptools-scm,
unittestCheckHook,
urllib3,
}:
buildPythonPackage rec {
pname = "cryptoparser";
version = "1.0.2";
pyproject = true;
src = fetchFromGitLab {
owner = "coroner";
repo = "cryptoparser";
tag = "v${version}";
hash = "sha256-CsG4hfA3pfE7FwxNfaUTLMS8RV0tv1czoHdIlolUX34=";
};
patches = [
(fetchpatch2 {
url = "https://gitlab.com/coroner/cryptoparser/-/merge_requests/2.diff";
hash = "sha256-T8dK6OMR41XUMrZ6B7ZybEtljZJOR2QbCiZl04dT3wA=";
})
];
build-system = [
setuptools
setuptools-scm
];
dependencies = [
asn1crypto
attrs
cryptodatahub
urllib3
];
env.PYTHONDONTWRITEBYTECODE = 1;
nativeCheckInputs = [
pyfakefs
unittestCheckHook
];
postInstall = ''
find $out -name __pycache__ -type d | xargs rm -rv
'';
pythonImportsCheck = [ "cryptoparser" ];
meta = {
description = "Security protocol parser and generator";
homepage = "https://gitlab.com/coroner/cryptoparser";
changelog = "https://gitlab.com/coroner/cryptoparser/-/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mpl20;
maintainers = [ ];
teams = with lib.teams; [ ngi ];
};
}
|