1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7 setuptools, 8 setuptools-scm, 9}: 10 11buildPythonPackage rec { 12 pname = "html2text"; 13 version = "2025.4.15"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "Alir3z4"; 20 repo = "html2text"; 21 tag = version; 22 hash = "sha256-SMdILvCVXMe3Tlf3kK54VfEKsQ/KvpBZK3xZ4zVwcfo="; 23 }; 24 25 build-system = [ 26 setuptools 27 setuptools-scm 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "html2text" ]; 33 34 meta = with lib; { 35 description = "Turn HTML into equivalent Markdown-structured text"; 36 homepage = "https://github.com/Alir3z4/html2text/"; 37 changelog = "https://github.com/Alir3z4/html2text/blob/${src.tag}/ChangeLog.rst"; 38 license = licenses.gpl3Only; 39 maintainers = [ ]; 40 mainProgram = "html2text"; 41 }; 42}