Files
nixpkgs/pkgs/development/python-modules/justext/default.nix
2025-02-26 04:50:15 +00:00

43 lines
870 B
Nix

{
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 = with lib; {
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 = licenses.bsd2;
maintainers = with maintainers; [ jokatzke ];
};
}