1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/html2text/2018.nix
Artemis Tosini 8fc1bd6ec3 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.
2019-10-28 21:15:19 -07:00

22 lines
444 B
Nix

{ 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;
};
}