Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 75 lines 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 markuppy, 6 odfpy, 7 openpyxl, 8 pandas, 9 pytestCheckHook, 10 pytest-cov-stub, 11 pyyaml, 12 setuptools-scm, 13 tabulate, 14 unicodecsv, 15 xlrd, 16 xlwt, 17}: 18 19buildPythonPackage rec { 20 pname = "tablib"; 21 version = "3.9.0"; 22 pyproject = true; 23 24 src = fetchPypi { 25 inherit pname version; 26 hash = "sha256-G2q9jtsPNWAeBMYWHXlmD9zeSrtKVPZsyfkFS9VdX+I="; 27 }; 28 29 nativeBuildInputs = [ setuptools-scm ]; 30 31 optional-dependencies = { 32 all = [ 33 markuppy 34 odfpy 35 openpyxl 36 pandas 37 pyyaml 38 tabulate 39 xlrd 40 xlwt 41 ]; 42 cli = [ tabulate ]; 43 html = [ markuppy ]; 44 ods = [ odfpy ]; 45 pandas = [ pandas ]; 46 xls = [ 47 xlrd 48 xlwt 49 ]; 50 xlsx = [ openpyxl ]; 51 yaml = [ pyyaml ]; 52 }; 53 54 nativeCheckInputs = [ 55 pandas 56 pytestCheckHook 57 pytest-cov-stub 58 unicodecsv 59 ]; 60 61 disabledTestPaths = [ 62 # test_tablib needs MarkupPy, which isn't packaged yet 63 "tests/test_tablib.py" 64 ]; 65 66 pythonImportsCheck = [ "tablib" ]; 67 68 meta = { 69 description = "Format-agnostic tabular dataset library"; 70 homepage = "https://tablib.readthedocs.io/"; 71 changelog = "https://github.com/jazzband/tablib/raw/v${version}/HISTORY.md"; 72 license = lib.licenses.mit; 73 maintainers = [ ]; 74 }; 75}