Files
nixpkgs/pkgs/development/python-modules/et-xmlfile/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

56 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitLab,
fetchpatch,
lxml,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "et-xmlfile";
version = "2.0.0";
pyproject = true;
src = fetchFromGitLab {
domain = "foss.heptapod.net";
owner = "openpyxl";
repo = "et_xmlfile";
tag = version;
hash = "sha256-JZ1fJ9o4/Z+9uSlaoq+pNpLSwl5Yv6BJCI1G7GOaQ1I=";
};
patches = [
(fetchpatch {
# python 3.14 compat
url = "https://foss.heptapod.net/openpyxl/et_xmlfile/-/commit/73172a7ce6d819ce13e6706f9a1c6d50f1646dde.patch";
hash = "sha256-PMtzIGtXJ/vp0VRmBodvyaG/Ptn2DwrTTC1EyLSChHU=";
})
];
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 = [ ];
};
}