Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
755 B · 40 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041{ lib, buildPythonPackage, fetchFromGitHub, setuptools, lxml, pypdf, pytestCheckHook,}:
buildPythonPackage rec { pname = "drafthorse"; version = "2025.1.1"; pyproject = true;
src = fetchFromGitHub { owner = "pretix"; repo = "python-drafthorse"; rev = version; hash = "sha256-zKFKZIF50qAYzLhyCWMfrgaf9YRpk1MU81DAWaycXFI="; };
build-system = [ setuptools ];
dependencies = [ lxml pypdf ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "drafthorse" ];
meta = with lib; { description = "Pure-python ZUGFeRD implementation"; homepage = "https://github.com/pretix/python-drafthorse"; license = licenses.asl20; maintainers = with maintainers; [ hexa ]; };}