pythonPackages.html2text: freeze at 2018.1.9
I was unable tp build calibre at the current git master as it relies on pytthon27Packages.html2text. Python 2.7 support was removed in the latest version. This PR downgrades html2text when using an unsupported Python version. This PR does not fix building python37Packages.html2text and python38Packages.html2text, which were broken at master due to what seems to be a problem in buildPythonPackage.
This commit is contained in:
parent
21c0cc1eee
commit
8fc1bd6ec3
21
pkgs/development/python-modules/html2text/2018.nix
Normal file
21
pkgs/development/python-modules/html2text/2018.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "html2text";
|
||||
version = "2018.1.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "627514fb30e7566b37be6900df26c2c78a030cc9e6211bda604d8181233bcdd4";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Turn HTML into equivalent Markdown-structured text";
|
||||
homepage = https://github.com/Alir3z4/html2text/;
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
|
||||
}
|
@ -5800,7 +5800,8 @@ in {
|
||||
|
||||
termcolor = callPackage ../development/python-modules/termcolor { };
|
||||
|
||||
html2text = callPackage ../development/python-modules/html2text { };
|
||||
html2text = if isPy3k then callPackage ../development/python-modules/html2text { }
|
||||
else callPackage ../development/python-modules/html2text/2018.nix { };
|
||||
|
||||
pychart = callPackage ../development/python-modules/pychart {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user