2019-10-29 08:30:21 +03:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
|
|
|
, pytest
|
2018-10-29 20:12:19 +03:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "html2text";
|
2019-10-24 09:47:35 +03:00
|
|
|
version = "2019.9.26";
|
2019-10-29 08:30:21 +03:00
|
|
|
disabled = pythonOlder "3.5";
|
2018-10-29 20:12:19 +03:00
|
|
|
|
2019-10-29 08:30:21 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Alir3z4";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1gzcx4n6q71plq4zvb1z0fy3brrln0qqrd6jc89iiqn7r1ix8h87";
|
2018-10-29 20:12:19 +03:00
|
|
|
};
|
|
|
|
|
2019-10-29 08:30:21 +03:00
|
|
|
# python setup.py test is broken, use pytest
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2018-10-29 20:12:19 +03:00
|
|
|
description = "Turn HTML into equivalent Markdown-structured text";
|
|
|
|
homepage = https://github.com/Alir3z4/html2text/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|