1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 lxml, 7 pypdf, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "drafthorse"; 13 version = "2025.1.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "pretix"; 18 repo = "python-drafthorse"; 19 rev = version; 20 hash = "sha256-zKFKZIF50qAYzLhyCWMfrgaf9YRpk1MU81DAWaycXFI="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ 26 lxml 27 pypdf 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "drafthorse" ]; 33 34 meta = with lib; { 35 description = "Pure-python ZUGFeRD implementation"; 36 homepage = "https://github.com/pretix/python-drafthorse"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ hexa ]; 39 }; 40}