Files
nixpkgs/pkgs/development/python-modules/html2text/default.nix
Martin Weinelt 5a46197f9d python3Packages.html2text: 2024.2.26 -> 2025.4.15
https://github.com/Alir3z4/html2text/blob/2025.4.15/ChangeLog.rst

This commit was automatically generated using update-python-libraries.
2025-08-09 18:59:50 +02:00

43 lines
884 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "html2text";
version = "2025.4.15";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Alir3z4";
repo = "html2text";
tag = version;
hash = "sha256-SMdILvCVXMe3Tlf3kK54VfEKsQ/KvpBZK3xZ4zVwcfo=";
};
build-system = [
setuptools
setuptools-scm
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "html2text" ];
meta = with lib; {
description = "Turn HTML into equivalent Markdown-structured text";
homepage = "https://github.com/Alir3z4/html2text/";
changelog = "https://github.com/Alir3z4/html2text/blob/${src.tag}/ChangeLog.rst";
license = licenses.gpl3Only;
maintainers = [ ];
mainProgram = "html2text";
};
}