2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-07-31 10:19:44 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
fetchpatch2,
|
2024-06-05 15:53:02 +00:00
|
|
|
pyexcel-io,
|
|
|
|
odfpy,
|
|
|
|
pyexcel,
|
|
|
|
pyexcel-xls,
|
|
|
|
psutil,
|
2024-07-31 10:19:44 +00:00
|
|
|
pytestCheckHook,
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-cov-stub,
|
2024-07-31 10:19:44 +00:00
|
|
|
setuptools,
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyexcel-ods";
|
2020-10-19 00:13:06 +00:00
|
|
|
version = "0.6.0";
|
2024-07-31 10:19:44 +00:00
|
|
|
pyproject = true;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pyexcel";
|
|
|
|
repo = "pyexcel-ods";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-wptjCSi56hotmiIE0TrLY7jsCHKwDR+a7d89sAQWBHg=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/pyexcel/pyexcel-ods/pull/45
|
|
|
|
(fetchpatch2 {
|
|
|
|
name = "nose-to-pytest.patch";
|
|
|
|
url = "https://github.com/pyexcel/pyexcel-ods/compare/661d4f0b484ed281128c72e1a2701e2d33fc1879...838b410e800a86c147644568aaa8b2c005d13491.patch";
|
|
|
|
hash = "sha256-1a52VM8yGDEjSFXTq3Di74xwv10d/QskpctOnz9zW1w=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2020-09-25 04:45:31 +00:00
|
|
|
pyexcel-io
|
|
|
|
odfpy
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-07-31 10:19:44 +00:00
|
|
|
pytestCheckHook
|
2024-09-19 14:19:46 +00:00
|
|
|
pytest-cov-stub
|
2020-09-25 04:45:31 +00:00
|
|
|
pyexcel
|
|
|
|
pyexcel-xls
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Plug-in to pyexcel providing the capbility to read, manipulate and write data in ods formats using odfpy";
|
|
|
|
homepage = "http://docs.pyexcel.org/";
|
|
|
|
license = lib.licenses.bsd3;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|