at master 870 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pytest-cov-stub, 7 lxml, 8 lxml-html-clean, 9}: 10 11buildPythonPackage rec { 12 pname = "justext"; 13 version = "3.0.2"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "miso-belica"; 18 repo = "jusText"; 19 tag = "v${version}"; 20 hash = "sha256-/7wp41jz/5nUFqZNg4O7yF2+eE+awAEXp6dhD+Loc0U="; 21 }; 22 23 propagatedBuildInputs = [ 24 lxml 25 lxml-html-clean 26 ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 pytest-cov-stub 31 ]; 32 33 pythonImportsCheck = [ "justext" ]; 34 35 meta = with lib; { 36 description = "Heuristic based boilerplate removal tool"; 37 homepage = "https://github.com/miso-belica/jusText"; 38 changelog = "https://github.com/miso-belica/jusText/blob/${src.tag}/CHANGELOG.rst"; 39 license = licenses.bsd2; 40 maintainers = with maintainers; [ jokatzke ]; 41 }; 42}