2022-04-15 01:41:22 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
, odfpy
|
|
|
|
, openpyxl
|
|
|
|
, pandas
|
2021-05-20 23:08:51 +00:00
|
|
|
, setuptools-scm
|
2022-04-15 01:41:22 +00:00
|
|
|
, pytestCheckHook
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyyaml
|
|
|
|
, unicodecsv
|
|
|
|
, xlrd
|
|
|
|
, xlwt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tablib";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "3.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-pX8ncLjCJf6+wcseZQEqac8w3Si+gQ4P+Y0CR2jH0PE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ];
|
2022-04-15 01:41:22 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-cov unicodecsv pandas ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# test_tablib needs MarkupPy, which isn't packaged yet
|
2022-04-15 01:41:22 +00:00
|
|
|
pytestFlagsArray = [ "--ignore=tests/test_tablib.py" ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|