2021-02-06 08:01:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
2018-10-29 17:12:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "html2text";
|
2020-01-22 14:16:17 +00:00
|
|
|
version = "2020.1.16";
|
2019-10-29 05:30:21 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2018-10-29 17:12:19 +00:00
|
|
|
|
2019-10-29 05:30:21 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Alir3z4";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-01-22 14:16:17 +00:00
|
|
|
sha256 = "1y924clp2hiqg3a9437z808p29mqcx537j5fmz71plx8qrcm5jf9";
|
2018-10-29 17:12:19 +00:00
|
|
|
};
|
|
|
|
|
2021-02-06 08:01:20 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "html2text" ];
|
2019-10-29 05:30:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2018-10-29 17:12:19 +00:00
|
|
|
description = "Turn HTML into equivalent Markdown-structured text";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Alir3z4/html2text/";
|
2021-02-06 08:01:20 +00:00
|
|
|
license = licenses.gpl3Only;
|
2018-10-29 17:12:19 +00:00
|
|
|
};
|
|
|
|
}
|