nixpkgs/pkgs/development/python-modules/html5-parser/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

49 lines
877 B
Nix

{
lib,
beautifulsoup4,
buildPythonPackage,
chardet,
fetchFromGitHub,
lxml,
pkg-config,
pkgs,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "html5-parser";
version = "0.4.12";
format = "setuptools";
src = fetchFromGitHub {
owner = "kovidgoyal";
repo = "html5-parser";
tag = "v${version}";
hash = "sha256-0Qn+To/d3+HMx+KhhgJBEHVYPOfIeBnngBraY7r4uSs=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pkgs.libxml2 ];
propagatedBuildInputs = [
chardet
lxml
];
nativeCheckInputs = [
beautifulsoup4
pytestCheckHook
];
pythonImportsCheck = [ "html5_parser" ];
enabledTestPaths = [ "test/*.py" ];
meta = {
description = "Fast C based HTML 5 parsing for python";
homepage = "https://html5-parser.readthedocs.io";
license = lib.licenses.asl20;
maintainers = [ ];
};
}