1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, bitstruct
5, diskcache
6, prompt-toolkit
7, pyparsing
8, python
9, pythonOlder
10}:
11
12buildPythonPackage rec {
13 pname = "asn1tools";
14 version = "0.164.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "eerimoq";
21 repo = "asn1tools";
22 rev = version;
23 hash= "sha256-sbwwbwkhlZvCb2emuw1FTBj5pnv9SOtHpAcYPSQqIvM=";
24 };
25
26 propagatedBuildInputs = [
27 bitstruct
28 diskcache
29 prompt-toolkit
30 pyparsing
31 ];
32
33 checkPhase = ''
34 ${python.interpreter} setup.py test
35 '';
36
37 pythonImportsCheck = [
38 "asn1tools"
39 ];
40
41 meta = with lib; {
42 description = "ASN.1 parsing, encoding and decoding";
43 homepage = "https://github.com/eerimoq/asn1tools";
44 license = licenses.mit;
45 maintainers = with maintainers; [ SuperSandro2000 ];
46 };
47}