blob: 20bd1d5cac74ef9f2885f425f7db47c3245687d5 (
plain)
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
41
42
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-cov-stub,
lxml,
lxml-html-clean,
}:
buildPythonPackage rec {
pname = "justext";
version = "3.0.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "miso-belica";
repo = "jusText";
tag = "v${version}";
hash = "sha256-/7wp41jz/5nUFqZNg4O7yF2+eE+awAEXp6dhD+Loc0U=";
};
propagatedBuildInputs = [
lxml
lxml-html-clean
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [ "justext" ];
meta = {
description = "Heuristic based boilerplate removal tool";
homepage = "https://github.com/miso-belica/jusText";
changelog = "https://github.com/miso-belica/jusText/blob/${src.tag}/CHANGELOG.rst";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ jokatzke ];
};
}
|