1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 lxml,
7 unittestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "lxml-html-clean";
12 version = "0.4.3";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "fedora-python";
17 repo = "lxml_html_clean";
18 tag = version;
19 hash = "sha256-pMZgECts7QqddI76EHnEDhQ0IoR/yioQXTqcg1npCOA=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ lxml ];
25
26 nativeCheckInputs = [ unittestCheckHook ];
27
28 pythonImportsCheck = [ "lxml_html_clean" ];
29
30 meta = {
31 description = "Separate project for HTML cleaning functionalities copied from lxml.html.clean";
32 homepage = "https://github.com/fedora-python/lxml_html_clean/";
33 changelog = "https://github.com/fedora-python/lxml_html_clean/blob/${version}/CHANGES.rst";
34 license = lib.licenses.bsd3;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}