Files
nixpkgs/pkgs/development/python-modules/tablib/default.nix
T

37 lines
748 B
Nix
Raw Normal View History

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