Unverified Commit 5b865460 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python310Packages.clevercsv: Expose optional dependencies

and prune them from the standard depencies propagated.
parent 81c1c63b
Loading
Loading
Loading
Loading
+20 −5
Original line number Diff line number Diff line
{ 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
    regex
    packaging
  ];

  passthru.optional-dependencies = {
    full = [
      faust-cchardet
      pandas
    regex
      tabview
      # TODO: wilderness
    ];
  };

  nativeCheckInputs = [
    pytestCheckHook
  ];
  ] ++ passthru.optional-dependencies.full;

  pythonImportsCheck = [
    "clevercsv"