python311Packages.asn1tools: expose extras, use pytest

This commit is contained in:
Martin Weinelt 2023-09-18 18:51:31 +02:00
parent 3b11cba2d0
commit d7db508b65

View file

@ -7,6 +7,7 @@
, pyparsing
, python
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
@ -25,14 +26,22 @@ buildPythonPackage rec {
propagatedBuildInputs = [
bitstruct
diskcache
prompt-toolkit
pyparsing
];
checkPhase = ''
${python.interpreter} setup.py test
'';
passthru.optional-depdendencies = {
shell = [
prompt-toolkit
];
cache = [
diskcache
];
};
nativeCheckInputs = [
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-depdendencies);
pythonImportsCheck = [
"asn1tools"