Files
nixpkgs/pkgs/development/python-modules/et-xmlfile/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

50 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitLab,
lxml,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "et-xmlfile";
version = "2.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitLab {
domain = "foss.heptapod.net";
owner = "openpyxl";
repo = "et_xmlfile";
tag = version;
hash = "sha256-JZ1fJ9o4/Z+9uSlaoq+pNpLSwl5Yv6BJCI1G7GOaQ1I=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
lxml
pytestCheckHook
];
pythonImportsCheck = [ "et_xmlfile" ];
meta = {
description = "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.
'';
homepage = "https://foss.heptapod.net/openpyxl/et_xmlfile";
license = lib.licenses.mit;
maintainers = [ ];
};
}