depot/third_party/nixpkgs/pkgs/development/python-modules/asn1tools/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

47 lines
852 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, bitstruct
, diskcache
, prompt-toolkit
, pyparsing
, python
, pythonOlder
}:
buildPythonPackage rec {
pname = "asn1tools";
version = "0.165.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "eerimoq";
repo = "asn1tools";
rev = version;
hash = "sha256-E9ns4xBDHkmIET2rXsMP9/9knXZ9H0D24w5QISQrYlc=";
};
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; [ SuperSandro2000 ];
};
}