python311Packages.asn1tools: expose extras, use pytest
This commit is contained in:
parent
3b11cba2d0
commit
d7db508b65
1 changed files with 14 additions and 5 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue