mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:48:10 +00:00
8fc1bd6ec3
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.
22 lines
444 B
Nix
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;
|
|
};
|
|
|
|
}
|