depot/third_party/nixpkgs/pkgs/development/python-modules/drafthorse/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

40 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 ];
};
}