41 lines
752 B
Nix
41 lines
752 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
setuptools,
|
||
|
lxml,
|
||
|
pypdf,
|
||
|
pytestCheckHook,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "drafthorse";
|
||
|
version = "2.4.0";
|
||
|
pyproject = true;
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "pretix";
|
||
|
repo = "python-drafthorse";
|
||
|
rev = version;
|
||
|
hash = "sha256-3W5rQ0YhyhIoZ+KsaOjlEJOrcoejPoTIJaylK7DOwKc=";
|
||
|
};
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|