2020-02-02 08:12:33 -08:00
|
|
|
{ buildPythonPackage, lib, fetchPypi, isPy27
|
|
|
|
, odfpy
|
|
|
|
, openpyxl
|
|
|
|
, pandas
|
2021-05-10 17:11:52 -04:00
|
|
|
, setuptools-scm
|
2020-02-02 08:12:33 -08:00
|
|
|
, pytest
|
2021-07-20 22:42:24 +02:00
|
|
|
, pytest-cov
|
2020-02-02 08:12:33 -08:00
|
|
|
, pyyaml
|
|
|
|
, unicodecsv
|
|
|
|
, xlrd
|
|
|
|
, xlwt
|
2018-03-17 14:04:53 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tablib";
|
2022-01-28 04:31:20 +00:00
|
|
|
version = "3.2.0";
|
2020-02-02 08:12:33 -08:00
|
|
|
disabled = isPy27;
|
2018-03-17 14:04:53 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-28 04:31:20 +00:00
|
|
|
sha256 = "12d8686454c721de88d8ca5adf07e1f419ef6dbcecedf65e8950d4a329daf3a0";
|
2018-03-17 14:04:53 +01:00
|
|
|
};
|
|
|
|
|
2021-05-10 17:11:52 -04:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2018-03-17 14:04:53 +01:00
|
|
|
propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ];
|
2021-07-20 22:42:24 +02:00
|
|
|
checkInputs = [ pytest pytest-cov unicodecsv pandas ];
|
2018-03-17 14:04:53 +01:00
|
|
|
|
2020-02-02 08:12:33 -08:00
|
|
|
# test_tablib needs MarkupPy, which isn't packaged yet
|
|
|
|
checkPhase = ''
|
|
|
|
pytest --ignore tests/test_tablib.py
|
|
|
|
'';
|
2018-03-17 14:04:53 +01:00
|
|
|
|
2020-02-02 08:12:33 -08:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Format-agnostic tabular dataset library";
|
|
|
|
homepage = "https://python-tablib.org";
|
2018-03-17 14:04:53 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|