Merge pull request #206735 from r-ryantm/auto-update/python3.9-tablib
python39Packages.tablib: 3.2.1 -> 3.3.0
This commit is contained in:
commit
e4599c2a03
@ -1,14 +1,14 @@
|
|||||||
{ buildPythonPackage
|
{ lib
|
||||||
, lib
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy27
|
|
||||||
, odfpy
|
, odfpy
|
||||||
, openpyxl
|
, openpyxl
|
||||||
, pandas
|
, pandas
|
||||||
, setuptools-scm
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytest-cov
|
, pythonOlder
|
||||||
, pyyaml
|
, pyyaml
|
||||||
|
, setuptools-scm
|
||||||
|
, tabulate
|
||||||
, unicodecsv
|
, unicodecsv
|
||||||
, xlrd
|
, xlrd
|
||||||
, xlwt
|
, xlwt
|
||||||
@ -17,26 +17,79 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "tablib";
|
pname = "tablib";
|
||||||
version = "3.2.1";
|
version = "3.2.1";
|
||||||
disabled = isPy27;
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-pX8ncLjCJf6+wcseZQEqac8w3Si+gQ4P+Y0CR2jH0PE=";
|
hash = "sha256-pX8ncLjCJf6+wcseZQEqac8w3Si+gQ4P+Y0CR2jH0PE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
postPatch = ''
|
||||||
propagatedBuildInputs = [ xlwt openpyxl pyyaml xlrd odfpy ];
|
substituteInPlace pytest.ini \
|
||||||
checkInputs = [ pytestCheckHook pytest-cov unicodecsv pandas ];
|
--replace " --cov=tablib --cov=tests --cov-report xml --cov-report term --cov-report html" ""
|
||||||
|
'';
|
||||||
|
|
||||||
# test_tablib needs MarkupPy, which isn't packaged yet
|
nativeBuildInputs = [
|
||||||
pytestFlagsArray = [ "--ignore=tests/test_tablib.py" ];
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "tablib" ];
|
passthru.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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pandas
|
||||||
|
pytestCheckHook
|
||||||
|
unicodecsv
|
||||||
|
];
|
||||||
|
|
||||||
|
disabledTestPaths = [
|
||||||
|
# test_tablib needs MarkupPy, which isn't packaged yet
|
||||||
|
"tests/test_tablib.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"tablib"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Format-agnostic tabular dataset library";
|
description = "Format-agnostic tabular dataset library";
|
||||||
homepage = "https://tablib.readthedocs.io/";
|
homepage = "https://tablib.readthedocs.io/";
|
||||||
changelog = "https://github.com/jazzband/tablib/raw/v${version}/HISTORY.md";
|
changelog = "https://github.com/jazzband/tablib/raw/v${version}/HISTORY.md";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user