2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-04-15 01:41:22 +00:00
|
|
|
, fetchPypi
|
2023-01-11 07:51:40 +00:00
|
|
|
, markuppy
|
2020-04-24 23:36:52 +00:00
|
|
|
, odfpy
|
|
|
|
, openpyxl
|
|
|
|
, pandas
|
2022-04-15 01:41:22 +00:00
|
|
|
, pytestCheckHook
|
2022-12-28 21:21:41 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyyaml
|
2022-12-28 21:21:41 +00:00
|
|
|
, setuptools-scm
|
|
|
|
, tabulate
|
2020-04-24 23:36:52 +00:00
|
|
|
, unicodecsv
|
|
|
|
, xlrd
|
|
|
|
, xlwt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tablib";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "3.5.0";
|
2023-04-29 16:46:19 +00:00
|
|
|
format = "pyproject";
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-9mYd/EXh1PUfqKYjn5yDSTgIWaW/qnMoBkXwRtbJbjM=";
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pytest.ini \
|
|
|
|
--replace " --cov=tablib --cov=tests --cov-report xml --cov-report term --cov-report html" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
all = [
|
2023-01-11 07:51:40 +00:00
|
|
|
markuppy
|
2022-12-28 21:21:41 +00:00
|
|
|
odfpy
|
|
|
|
openpyxl
|
|
|
|
pandas
|
|
|
|
pyyaml
|
|
|
|
tabulate
|
|
|
|
xlrd
|
|
|
|
xlwt
|
|
|
|
];
|
|
|
|
cli = [
|
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
html = [
|
2023-01-11 07:51:40 +00:00
|
|
|
markuppy
|
2022-12-28 21:21:41 +00:00
|
|
|
];
|
|
|
|
ods = [
|
|
|
|
odfpy
|
|
|
|
];
|
|
|
|
pandas = [
|
|
|
|
pandas
|
|
|
|
];
|
|
|
|
xls = [
|
|
|
|
xlrd
|
|
|
|
xlwt
|
|
|
|
];
|
|
|
|
xlsx = [
|
|
|
|
openpyxl
|
|
|
|
];
|
|
|
|
yaml = [
|
|
|
|
pyyaml
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-28 21:21:41 +00:00
|
|
|
pandas
|
|
|
|
pytestCheckHook
|
|
|
|
unicodecsv
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# test_tablib needs MarkupPy, which isn't packaged yet
|
|
|
|
"tests/test_tablib.py"
|
|
|
|
];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"tablib"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Format-agnostic tabular dataset library";
|
2022-04-15 01:41:22 +00:00
|
|
|
homepage = "https://tablib.readthedocs.io/";
|
|
|
|
changelog = "https://github.com/jazzband/tablib/raw/v${version}/HISTORY.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-12-28 21:21:41 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|