15 buildPythonPackage rec {
20 disabled = pythonOlder "3.8";
22 src = fetchFromGitHub {
25 rev = "refs/tags/${version}";
26 hash = "sha256-86bdBYlAVJfd3EY8s0t6ZDRA/qZVWuHD4Jxa1n1Ke5E=";
29 build-system = [ setuptools ];
36 optional-dependencies = {
37 shell = [ prompt-toolkit ];
38 cache = [ diskcache ];
44 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
46 pythonImportsCheck = [ "asn1tools" ];
49 # assert exact error message of pyparsing which changed and no longer matches
50 # https://github.com/eerimoq/asn1tools/issues/167
55 description = "ASN.1 parsing, encoding and decoding";
56 homepage = "https://github.com/eerimoq/asn1tools";
57 changelog = "https://github.com/eerimoq/asn1tools/releases/tag/${version}";
58 license = licenses.mit;
60 mainProgram = "asn1tools";