43 lines
881 B
Nix
43 lines
881 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
pytestCheckHook,
|
||
|
pytest-cov-stub,
|
||
|
lxml,
|
||
|
lxml-html-clean,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "justext";
|
||
|
version = "3.0.1";
|
||
|
format = "setuptools";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "miso-belica";
|
||
|
repo = "jusText";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-9i7hzCK/ijh8xw9l2ZbVhVj5IBf0WD/49/R1tSWgqrQ=";
|
||
|
};
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
lxml
|
||
|
lxml-html-clean
|
||
|
];
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
pytestCheckHook
|
||
|
pytest-cov-stub
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "justext" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Heuristic based boilerplate removal tool";
|
||
|
homepage = "https://github.com/miso-belica/jusText";
|
||
|
changelog = "https://github.com/miso-belica/jusText/blob/v${version}/CHANGELOG.rst";
|
||
|
license = licenses.bsd2;
|
||
|
maintainers = with maintainers; [ jokatzke ];
|
||
|
};
|
||
|
}
|