Files
nixpkgs/pkgs/development/python-modules/lxml-html-clean/default.nix

38 lines
888 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
lxml,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "lxml-html-clean";
version = "0.4.3";
pyproject = true;
src = fetchFromGitHub {
owner = "fedora-python";
repo = "lxml_html_clean";
tag = version;
hash = "sha256-pMZgECts7QqddI76EHnEDhQ0IoR/yioQXTqcg1npCOA=";
};
build-system = [ setuptools ];
dependencies = [ lxml ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "lxml_html_clean" ];
meta = {
description = "Separate project for HTML cleaning functionalities copied from lxml.html.clean";
homepage = "https://github.com/fedora-python/lxml_html_clean/";
changelog = "https://github.com/fedora-python/lxml_html_clean/blob/${version}/CHANGES.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}