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