python310Packages.apispec: add optional-dependencies
This commit is contained in:
parent
4ec20c70d8
commit
605b230af9
1 changed files with 16 additions and 5 deletions
|
@ -4,6 +4,7 @@
|
|||
, marshmallow
|
||||
, mock
|
||||
, openapi-spec-validator
|
||||
, packaging
|
||||
, prance
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
|
@ -23,16 +24,26 @@ buildPythonPackage rec {
|
|||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyyaml
|
||||
prance
|
||||
packaging
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
marshmallow = [
|
||||
marshmallow
|
||||
];
|
||||
yaml = [
|
||||
pyyaml
|
||||
];
|
||||
validation = [
|
||||
openapi-spec-validator
|
||||
prance
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
openapi-spec-validator
|
||||
marshmallow
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
||||
|
||||
pythonImportsCheck = [
|
||||
"apispec"
|
||||
|
|
Loading…
Reference in a new issue