blob: 5083b20f3b33f4b2fd414811e4649394399f8ab8 (
plain) (
blame)
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
, bitstruct
, buildPythonPackage
, diskcache
, fetchFromGitHub
, prompt-toolkit
, pyparsing
, pytest-xdist
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "asn1tools";
version = "0.166.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "eerimoq";
repo = "asn1tools";
rev = "refs/tags/${version}";
hash = "sha256-TWAOML6nsLX3TYqoQ9fcSjrUmC4byXOfczfkmSaSa0k=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
bitstruct
pyparsing
];
passthru.optional-depdendencies = {
shell = [
prompt-toolkit
];
cache = [
diskcache
];
};
nativeCheckInputs = [
pytest-xdist
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-depdendencies);
pythonImportsCheck = [
"asn1tools"
];
disabledTests = [
# assert exact error message of pyparsing which changed and no longer matches
# https://github.com/eerimoq/asn1tools/issues/167
"test_parse_error"
];
meta = with lib; {
description = "ASN.1 parsing, encoding and decoding";
homepage = "https://github.com/eerimoq/asn1tools";
changelog = "https://github.com/eerimoq/asn1tools/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}
|