nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 862 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 lxml, 6 lxml-html-clean, 7 pytestCheckHook, 8 hatchling, 9}: 10 11buildPythonPackage (finalAttrs: { 12 pname = "html-text"; 13 version = "0.7.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "zytedata"; 18 repo = "html-text"; 19 tag = finalAttrs.version; 20 hash = "sha256-KLWgdVHGYRiQ61hMNx+Kcx9mE7d/TsBe110TfCe+ejU="; 21 }; 22 23 build-system = [ hatchling ]; 24 25 dependencies = [ 26 lxml 27 lxml-html-clean 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "html_text" ]; 33 34 meta = { 35 description = "Extract text from HTML"; 36 homepage = "https://github.com/zytedata/html-text"; 37 changelog = "https://github.com/zytedata/html-text/blob/${finalAttrs.version}/CHANGES.rst"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ ambroisie ]; 40 }; 41})