From 5b86546070673909913858240f4dfda1eed2af2e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 8 Apr 2023 17:44:04 +0200 Subject: [PATCH] python310Packages.clevercsv: Expose optional dependencies and prune them from the standard depencies propagated. --- .../python-modules/clevercsv/default.nix | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/clevercsv/default.nix b/pkgs/development/python-modules/clevercsv/default.nix index b09946ba727f..4ab05a964f56 100644 --- a/pkgs/development/python-modules/clevercsv/default.nix +++ b/pkgs/development/python-modules/clevercsv/default.nix @@ -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"