blob: 7c9b1b9de985d03e83d91e91b83e9a14efac98d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
lxml,
unittestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "lxml-html-clean";
version = "0.1.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fedora-python";
repo = "lxml_html_clean";
rev = "refs/tags/${version}";
hash = "sha256-vnRsSkhjeDxZ2bYbIe+2D4GjymZWcIVo2LAPuCaYIZo=";
};
build-system = [ setuptools ];
dependencies = [ lxml ];
nativeCheckInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "lxml_html_clean" ];
meta = with lib; {
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 = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}
|