python310Packages.tablib: use optional-dependencies

This commit is contained in:
Fabian Affolter 2022-12-20 10:25:50 +01:00 committed by GitHub
parent 8fd8a3aba1
commit 8ccd98536a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,14 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, odfpy
, openpyxl
, pandas
, setuptools-scm
, pytestCheckHook
, pytest-cov
, pythonOlder
, pyyaml
, setuptools-scm
, tabulate
, unicodecsv
, xlrd
, xlwt
@ -35,13 +35,40 @@ buildPythonPackage rec {
setuptools-scm
];
propagatedBuildInputs = [
odfpy
openpyxl
pyyaml
xlrd
xlwt
];
passthru.optional-dependencies = {
all = [
# markuppy
odfpy
openpyxl
pandas
pyyaml
tabulate
xlrd
xlwt
];
cli = [
tabulate
];
html = [
# markuppy
];
ods = [
odfpy
];
pandas = [
pandas
];
xls = [
xlrd
xlwt
];
xlsx = [
openpyxl
];
yaml = [
pyyaml
];
};
checkInputs = [
pandas