python312Packages.drafthorse: init at 2.4.0
Pure-python ZUGFeRD implementation
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user