1{ buildPythonPackage
2, lib
3, fetchPypi
4, isPy27
5, odfpy
6, openpyxl
7, pandas
8, setuptools-scm
9, pytestCheckHook
10, pytest-cov
11, pyyaml
12, unicodecsv
13, xlrd
14, xlwt
15}:
16
17buildPythonPackage rec {
18 pname = "tablib";
19 version = "3.2.1";
20 disabled = isPy27;
21
22 src = fetchPypi {
23 inherit pname version;
24 sha256 = "sha256-pX8ncLjCJf6+wcseZQEqac8w3Si+gQ4P+Y0CR2jH0PE=";
25 };
26
27 nativeBuildInputs = [ setuptools-scm ];
28 propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ];
29 checkInputs = [ pytestCheckHook pytest-cov unicodecsv pandas ];
30
31 # test_tablib needs MarkupPy, which isn't packaged yet
32 pytestFlagsArray = [ "--ignore=tests/test_tablib.py" ];
33
34 pythonImportsCheck = [ "tablib" ];
35
36 meta = with lib; {
37 description = "Format-agnostic tabular dataset library";
38 homepage = "https://tablib.readthedocs.io/";
39 changelog = "https://github.com/jazzband/tablib/raw/v${version}/HISTORY.md";
40 license = licenses.mit;
41 };
42}