Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitLab 4, lxml 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "et-xmlfile"; 11 version = "1.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitLab { 17 domain = "foss.heptapod.net"; 18 owner = "openpyxl"; 19 repo = "et_xmlfile"; 20 rev = version; 21 hash = "sha256-MJimcnYKujOL3FedGreNpuw1Jpg48ataDmFd1qwTS5A="; 22 }; 23 24 nativeCheckInputs = [ 25 lxml 26 pytestCheckHook 27 ]; 28 29 pythonImportsCheck = [ 30 "et_xmlfile" 31 ]; 32 33 meta = with lib; { 34 description = "An implementation of lxml.xmlfile for the standard library"; 35 longDescription = '' 36 et_xmlfile is a low memory library for creating large XML files. 37 38 It is based upon the xmlfile module from lxml with the aim of 39 allowing code to be developed that will work with both 40 libraries. It was developed initially for the openpyxl project 41 but is now a standalone module. 42 ''; 43 homepage = "https://foss.heptapod.net/openpyxl/et_xmlfile"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ ]; 46 }; 47}