nixpkgs/pkgs/development/python-modules/tablib/default.nix
Michael Daniels 075e8c2c4f
treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

75 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
markuppy,
odfpy,
openpyxl,
pandas,
pytestCheckHook,
pytest-cov-stub,
pyyaml,
setuptools-scm,
tabulate,
unicodecsv,
xlrd,
xlwt,
}:
buildPythonPackage rec {
pname = "tablib";
version = "3.8.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-lNi83GWnFaACSm1bcBpfMeRb0VkmnmLHNzHeefBI2ys=";
};
nativeBuildInputs = [ setuptools-scm ];
optional-dependencies = {
all = [
markuppy
odfpy
openpyxl
pandas
pyyaml
tabulate
xlrd
xlwt
];
cli = [ tabulate ];
html = [ markuppy ];
ods = [ odfpy ];
pandas = [ pandas ];
xls = [
xlrd
xlwt
];
xlsx = [ openpyxl ];
yaml = [ pyyaml ];
};
nativeCheckInputs = [
pandas
pytestCheckHook
pytest-cov-stub
unicodecsv
];
disabledTestPaths = [
# test_tablib needs MarkupPy, which isn't packaged yet
"tests/test_tablib.py"
];
pythonImportsCheck = [ "tablib" ];
meta = {
description = "Format-agnostic tabular dataset library";
homepage = "https://tablib.readthedocs.io/";
changelog = "https://github.com/jazzband/tablib/raw/v${version}/HISTORY.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}