python312Packages.drafthorse: init at 2.4.0

Pure-python ZUGFeRD implementation
This commit is contained in:
Martin Weinelt
2024-08-01 05:05:14 +02:00
parent 4ba537131f
commit 53e5eaef01
2 changed files with 42 additions and 0 deletions
@@ -0,0 +1,40 @@
{
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 ];
};
}
+2
View File
@@ -3617,6 +3617,8 @@ self: super: with self; {
dploot = callPackage ../development/python-modules/dploot { };
drafthorse = callPackage ../development/python-modules/drafthorse { };
draftjs-exporter = callPackage ../development/python-modules/draftjs-exporter { };
dragonfly = callPackage ../development/python-modules/dragonfly { };