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-02-24 16:36:42 +00:00
|
|
|
version = "1.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;
|
2020-02-24 16:36:42 +00:00
|
|
|
sha256 = "19wvx40lgm1d1zqscznwjklchczcmv07cqfigalmpj7i7ym0j6ad";
|
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;
|
|
|
|
};
|
|
|
|
}
|