depot/third_party/nixpkgs/pkgs/development/python-modules/tablib/default.nix
Default email 620eecebfb Project import generated by Copybara.
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
2021-10-28 08:52:43 +02:00

38 lines
821 B
Nix

{ buildPythonPackage, lib, fetchPypi, isPy27
, odfpy
, openpyxl
, pandas
, setuptools-scm
, pytest
, pytest-cov
, pyyaml
, unicodecsv
, xlrd
, xlwt
}:
buildPythonPackage rec {
pname = "tablib";
version = "3.1.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "d64c9f6712918a3d90ec5d71b44b8bab1083e3609e4844ad2be80eb633e097ed";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ];
checkInputs = [ pytest pytest-cov unicodecsv pandas ];
# test_tablib needs MarkupPy, which isn't packaged yet
checkPhase = ''
pytest --ignore tests/test_tablib.py
'';
meta = with lib; {
description = "Format-agnostic tabular dataset library";
homepage = "https://python-tablib.org";
license = licenses.mit;
};
}