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