depot/third_party/nixpkgs/pkgs/development/python-modules/asn1tools/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

47 lines
836 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, bitstruct
, diskcache
, prompt-toolkit
, pyparsing
, python
, pythonOlder
}:
buildPythonPackage rec {
pname = "asn1tools";
version = "0.166.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "eerimoq";
repo = "asn1tools";
rev = version;
hash = "sha256-TWAOML6nsLX3TYqoQ9fcSjrUmC4byXOfczfkmSaSa0k=";
};
propagatedBuildInputs = [
bitstruct
diskcache
prompt-toolkit
pyparsing
];
checkPhase = ''
${python.interpreter} setup.py test
'';
pythonImportsCheck = [
"asn1tools"
];
meta = with lib; {
description = "ASN.1 parsing, encoding and decoding";
homepage = "https://github.com/eerimoq/asn1tools";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}