b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
47 lines
851 B
Nix
47 lines
851 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, bitstruct
|
|
, diskcache
|
|
, prompt-toolkit
|
|
, pyparsing
|
|
, python
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asn1tools";
|
|
version = "0.164.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eerimoq";
|
|
repo = "asn1tools";
|
|
rev = version;
|
|
hash= "sha256-sbwwbwkhlZvCb2emuw1FTBj5pnv9SOtHpAcYPSQqIvM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|