python311Packages.typepy: add optional-dependencies

This commit is contained in:
Fabian Affolter
2023-08-31 16:17:09 +02:00
parent e8db8bb6ba
commit 6f692f64c9
@@ -26,14 +26,23 @@ buildPythonPackage rec {
propagatedBuildInputs = [
mbstrdecoder
python-dateutil
pytz
packaging
];
passthru.optional-dependencies = {
datetime = [
python-dateutil
pytz
packaging
];
};
nativeCheckInputs = [
pytestCheckHook
tcolorpy
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [
"typepy"
];
meta = with lib; {