2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitLab,
|
|
|
|
lxml,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-04-12 12:48:02 +00:00
|
|
|
pname = "et-xmlfile";
|
|
|
|
version = "1.1";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "foss.heptapod.net";
|
|
|
|
owner = "openpyxl";
|
|
|
|
repo = "et_xmlfile";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-MJimcnYKujOL3FedGreNpuw1Jpg48ataDmFd1qwTS5A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
lxml
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "et_xmlfile" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An implementation of lxml.xmlfile for the standard library";
|
|
|
|
longDescription = ''
|
|
|
|
et_xmlfile is a low memory library for creating large XML files.
|
|
|
|
|
|
|
|
It is based upon the xmlfile module from lxml with the aim of
|
|
|
|
allowing code to be developed that will work with both
|
|
|
|
libraries. It was developed initially for the openpyxl project
|
|
|
|
but is now a standalone module.
|
|
|
|
'';
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://foss.heptapod.net/openpyxl/et_xmlfile";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|