2020-02-02 16:12:33 +00:00
|
|
|
{ buildPythonPackage, lib, fetchPypi, isPy27
|
|
|
|
, odfpy
|
|
|
|
, openpyxl
|
|
|
|
, pandas
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pyyaml
|
|
|
|
, unicodecsv
|
|
|
|
, xlrd
|
|
|
|
, xlwt
|
2018-03-17 13:04:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tablib";
|
2020-05-24 06:32:12 +01:00
|
|
|
version = "2.0.0";
|
2020-02-02 16:12:33 +00:00
|
|
|
disabled = isPy27;
|
2018-03-17 13:04:53 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-24 06:32:12 +01:00
|
|
|
sha256 = "1rvvdchdva7j9b29ay0sg8y33pjhpmzynl38wz2rl89pph8gmhlc";
|
2018-03-17 13:04:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ];
|
2020-02-02 16:12:33 +00:00
|
|
|
checkInputs = [ pytest pytestcov 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;
|
|
|
|
};
|
|
|
|
}
|