kdePackages.kirigami-addons: 1.5.0 -> 1.6.0 (#360539)
[NixPkgs.git] / pkgs / development / python-modules / asn1tools / default.nix
blob8ca21fece1476c2ba45c13f648321b901ca932a0
2   lib,
3   bitstruct,
4   buildPythonPackage,
5   diskcache,
6   fetchFromGitHub,
7   prompt-toolkit,
8   pyparsing,
9   pytest-xdist,
10   pytestCheckHook,
11   pythonOlder,
12   setuptools,
15 buildPythonPackage rec {
16   pname = "asn1tools";
17   version = "0.167.0";
18   pyproject = true;
20   disabled = pythonOlder "3.8";
22   src = fetchFromGitHub {
23     owner = "eerimoq";
24     repo = "asn1tools";
25     rev = "refs/tags/${version}";
26     hash = "sha256-86bdBYlAVJfd3EY8s0t6ZDRA/qZVWuHD4Jxa1n1Ke5E=";
27   };
29   build-system = [ setuptools ];
31   dependencies = [
32     bitstruct
33     pyparsing
34   ];
36   optional-dependencies = {
37     shell = [ prompt-toolkit ];
38     cache = [ diskcache ];
39   };
41   nativeCheckInputs = [
42     pytest-xdist
43     pytestCheckHook
44   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
46   pythonImportsCheck = [ "asn1tools" ];
48   disabledTests = [
49     # assert exact error message of pyparsing which changed and no longer matches
50     # https://github.com/eerimoq/asn1tools/issues/167
51     "test_parse_error"
52   ];
54   meta = with lib; {
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;
59     maintainers = [ ];
60     mainProgram = "asn1tools";
61   };