My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/tablib/default.nix

42 lines
946 B

{ 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;
};
}