Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 748 B view raw
1{ buildPythonPackage, lib, fetchPypi, isPy27 2, odfpy 3, openpyxl 4, pandas 5, pytest 6, pytestcov 7, pyyaml 8, unicodecsv 9, xlrd 10, xlwt 11}: 12 13buildPythonPackage rec { 14 pname = "tablib"; 15 version = "2.0.0"; 16 disabled = isPy27; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "1rvvdchdva7j9b29ay0sg8y33pjhpmzynl38wz2rl89pph8gmhlc"; 21 }; 22 23 propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ]; 24 checkInputs = [ pytest pytestcov unicodecsv pandas ]; 25 26 # test_tablib needs MarkupPy, which isn't packaged yet 27 checkPhase = '' 28 pytest --ignore tests/test_tablib.py 29 ''; 30 31 meta = with lib; { 32 description = "Format-agnostic tabular dataset library"; 33 homepage = "https://python-tablib.org"; 34 license = licenses.mit; 35 }; 36}