nixpkgs/pkgs/development/python-modules/tinyhtml5/default.nix
Martin Weinelt e1f7d4da32
python313Packages.tinyhtml5: init at 2.0.0
New dependency for weasyprint
2025-01-27 10:57:52 +01:00

45 lines
823 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
webencodings,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "tinyhtml5";
version = "2.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "CourtBouillon";
repo = "tinyhtml5";
tag = version;
hash = "sha256-8OKZAQyFMoICcln6XxTE9MHivXaW8pBVC6n+hbriIoU=";
};
build-system = [
flit-core
];
dependencies = [
webencodings
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"tinyhtml5"
];
meta = {
changelog = "https://github.com/CourtBouillon/tinyhtml5/releases/tag/${src.tag}";
description = "A tiny HTML5 parser";
homepage = "https://github.com/CourtBouillon/tinyhtml5";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};
}