python310Packages.apispec: add optional-dependencies

This commit is contained in:
Fabian Affolter 2023-02-20 10:34:17 +01:00
parent 4ec20c70d8
commit 605b230af9

View file

@ -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"