python310Packages.clevercsv: Expose optional dependencies

and prune them from the standard depencies propagated.
This commit is contained in:
Martin Weinelt
2023-04-08 17:44:04 +02:00
parent 81c1c63b70
commit 5b86546070
@@ -1,11 +1,19 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# propagates
, chardet
, regex
, packaging
# optionals
, faust-cchardet
, pandas
, regex
, tabview
# TODO: , wilderness
# tests
, python
, pytestCheckHook
}:
@@ -24,15 +32,22 @@ buildPythonPackage rec {
propagatedBuildInputs = [
chardet
faust-cchardet
pandas
regex
tabview
packaging
];
passthru.optional-dependencies = {
full = [
faust-cchardet
pandas
tabview
# TODO: wilderness
];
};
nativeCheckInputs = [
pytestCheckHook
];
] ++ passthru.optional-dependencies.full;
pythonImportsCheck = [
"clevercsv"