1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "html2text";
10 version = "2020.1.16";
11 disabled = pythonOlder "3.5";
12
13 src = fetchFromGitHub {
14 owner = "Alir3z4";
15 repo = pname;
16 rev = version;
17 sha256 = "1y924clp2hiqg3a9437z808p29mqcx537j5fmz71plx8qrcm5jf9";
18 };
19
20 nativeCheckInputs = [ pytestCheckHook ];
21
22 pythonImportsCheck = [ "html2text" ];
23
24 meta = with lib; {
25 description = "Turn HTML into equivalent Markdown-structured text";
26 homepage = "https://github.com/Alir3z4/html2text/";
27 license = licenses.gpl3Only;
28 };
29}