2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage, lib, fetchPypi, isPy27
|
|
|
|
, odfpy
|
|
|
|
, openpyxl
|
|
|
|
, pandas
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pyyaml
|
|
|
|
, unicodecsv
|
|
|
|
, xlrd
|
|
|
|
, xlwt
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tablib";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "2.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "1rvvdchdva7j9b29ay0sg8y33pjhpmzynl38wz2rl89pph8gmhlc";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ];
|
|
|
|
checkInputs = [ pytest pytestcov unicodecsv pandas ];
|
|
|
|
|
|
|
|
# test_tablib needs MarkupPy, which isn't packaged yet
|
|
|
|
checkPhase = ''
|
|
|
|
pytest --ignore tests/test_tablib.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Format-agnostic tabular dataset library";
|
|
|
|
homepage = "https://python-tablib.org";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|