nixpkgs/pkgs/development/python-modules/html5lib/default.nix
Martin Weinelt 1690f975ae python3Packages.html5lib: 1.1 -> 1.1-unstable-2024-02-21
Reenables the tests and backports a fix for Python 3.14 compat.
2025-11-25 12:35:46 -08:00

60 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
six,
webencodings,
pytest-expect,
pytestCheckHook,
unstableGitUpdater,
}:
buildPythonPackage {
pname = "html5lib";
version = "1.1-unstable-2024-02-21";
pyproject = true;
src = fetchFromGitHub {
owner = "html5lib";
repo = "html5lib-python";
rev = "fd4f032bc090d44fb11a84b352dad7cbee0a4745";
hash = "sha256-Hyte1MEqlrD2enfunK1qtm3FJlUDqmhSyrCjo7VaBgA=";
};
patches = [
# https://github.com/html5lib/html5lib-python/pull/583
./python314-compat.patch
];
build-system = [ setuptools ];
dependencies = [
six
webencodings
];
nativeCheckInputs = [
pytest-expect
pytestCheckHook
];
passthru.updateScript = unstableGitUpdater {
branch = "master";
};
meta = {
homepage = "https://github.com/html5lib/html5lib-python";
downloadPage = "https://github.com/html5lib/html5lib-python/releases";
description = "HTML parser based on WHAT-WG HTML5 specification";
longDescription = ''
html5lib is a pure-python library for parsing HTML. It is designed to
conform to the WHATWG HTML specification, as is implemented by all
major web browsers.
'';
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
prikhi
];
};
}