mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 00:10:12 +00:00
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
||
lib,
|
||
buildPythonPackage,
|
||
fetchFromGitHub,
|
||
hatchling,
|
||
pypdf,
|
||
requests,
|
||
selenium,
|
||
versionCheckHook,
|
||
webdriver-manager,
|
||
}:
|
||
|
||
buildPythonPackage (finalAttrs: {
|
||
pname = "html2pdf4doc";
|
||
version = "0.0.35";
|
||
pyproject = true;
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "strictdoc-project";
|
||
repo = "html2pdf4doc_python";
|
||
tag = finalAttrs.version;
|
||
hash = "sha256-xq2j39OyBoQPQGpMn7xQiRGq8sBkrqqL8mCjEzSdLAA=";
|
||
};
|
||
|
||
build-system = [
|
||
hatchling
|
||
];
|
||
|
||
dependencies = [
|
||
pypdf
|
||
requests
|
||
selenium
|
||
webdriver-manager
|
||
];
|
||
|
||
pythonImportsCheck = [ "html2pdf4doc" ];
|
||
|
||
nativeCheckInputs = [
|
||
versionCheckHook
|
||
];
|
||
|
||
versionCheckProgramArg = "-v";
|
||
|
||
meta = {
|
||
description = "Print HTML to PDF in the Browser – Python Package for HTML2PDF.js";
|
||
homepage = "https://github.com/strictdoc-project/html2pdf4doc_python";
|
||
changelog = "https://github.com/strictdoc-project/html2pdf4doc_python/releases/tag/${finalAttrs.src.tag}";
|
||
license = lib.licenses.asl20;
|
||
maintainers = with lib.maintainers; [ puzzlewolf ];
|
||
};
|
||
})
|