mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-28 11:14:46 +00:00
38 lines
920 B
Nix
38 lines
920 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
lxml,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "lxml-html-clean";
|
|
version = "0.4.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fedora-python";
|
|
repo = "lxml_html_clean";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-R2FRaIgO0n9hNbKY4HYeqO0THXrXYokQekqers/Q1ao=";
|
|
};
|
|
|
|
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/${finalAttrs.src.tag}/CHANGES.rst";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|