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