1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 requests, 7 selenium, 8 versionCheckHook, 9 webdriver-manager, 10}: 11 12buildPythonPackage rec { 13 pname = "html2pdf4doc"; 14 version = "0.0.21"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "mettta"; 19 repo = "html2pdf4doc_python"; 20 tag = version; 21 hash = "sha256-cYKbnMVsENA17VsNXjV/funmBPbbrwA6enpIxOZ2sbQ="; 22 }; 23 24 build-system = [ 25 hatchling 26 ]; 27 28 dependencies = [ 29 requests 30 selenium 31 webdriver-manager 32 ]; 33 34 pythonImportsCheck = [ "html2pdf4doc" ]; 35 36 nativeCheckInputs = [ 37 versionCheckHook 38 ]; 39 40 versionCheckProgramArg = "-v"; 41 42 meta = { 43 description = "Print HTML to PDF in the Browser Python Package for HTML2PDF.js"; 44 homepage = "https://github.com/mettta/html2pdf4doc_python"; 45 changelog = "https://github.com/mettta/html2pdf4doc_python/releases/tag/${version}"; 46 license = lib.licenses.asl20; 47 maintainers = with lib.maintainers; [ puzzlewolf ]; 48 }; 49}