Files
nixpkgs/pkgs/development/python-modules/html-text/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
880 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
lxml,
lxml-html-clean,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "html-text";
version = "0.6.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "zytedata";
repo = "html-text";
tag = version;
hash = "sha256-e9gkibQv8mn1Jbt77UmpauOeTqhJQhY9R5Sge/iYi+U=";
};
build-system = [ setuptools ];
dependencies = [
lxml
lxml-html-clean
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "html_text" ];
meta = {
description = "Extract text from HTML";
homepage = "https://github.com/zytedata/html-text";
changelog = "https://github.com/zytedata/html-text/blob/${version}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ambroisie ];
};
}