@@ -1,9 +1,12 @@
1−{ buildPythonPackage, lib, fetchPypi, isPy27
1+{ buildPythonPackage
2+, lib
3+, fetchPypi
4+, isPy27
25, odfpy
36, openpyxl
47, pandas
58, setuptools-scm
6−, pytest
9+, pytestCheckHook
710, pytest-cov
811, pyyaml
912, unicodecsv
@@ -23,16 +26,17 @@ buildPythonPackage rec {
2326
2427 nativeBuildInputs = [ setuptools-scm ];
2528 propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ];
26− checkInputs = [ pytest pytest-cov unicodecsv pandas ];
29+ checkInputs = [ pytestCheckHook pytest-cov unicodecsv pandas ];
2730
2831 # test_tablib needs MarkupPy, which isn't packaged yet
29− checkPhase = ''
30− pytest --ignore tests/test_tablib.py
31− '';
32+ pytestFlagsArray = [ "--ignore=tests/test_tablib.py" ];
33+
34+ pythonImportsCheck = [ "tablib" ];
3235
3336 meta = with lib; {
3437 description = "Format-agnostic tabular dataset library";
35− homepage = "https://python-tablib.org";
38+ homepage = "https://tablib.readthedocs.io/";
39+ changelog = "https://github.com/jazzband/tablib/raw/v${version}/HISTORY.md";
3640 license = licenses.mit;
3741 };
3842}