depot/third_party/nixpkgs/pkgs/development/python-modules/tablib/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

42 lines
946 B
Nix

{ buildPythonPackage
, lib
, fetchPypi
, isPy27
, odfpy
, openpyxl
, pandas
, setuptools-scm
, pytestCheckHook
, pytest-cov
, pyyaml
, unicodecsv
, xlrd
, xlwt
}:
buildPythonPackage rec {
pname = "tablib";
version = "3.2.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-pX8ncLjCJf6+wcseZQEqac8w3Si+gQ4P+Y0CR2jH0PE=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ];
checkInputs = [ pytestCheckHook pytest-cov unicodecsv pandas ];
# test_tablib needs MarkupPy, which isn't packaged yet
pytestFlagsArray = [ "--ignore=tests/test_tablib.py" ];
pythonImportsCheck = [ "tablib" ];
meta = with lib; {
description = "Format-agnostic tabular dataset library";
homepage = "https://tablib.readthedocs.io/";
changelog = "https://github.com/jazzband/tablib/raw/v${version}/HISTORY.md";
license = licenses.mit;
};
}