Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 8fc1bd6ec352
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 753ab3ce84bb
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 29, 2019

  1. python3Packages.html2text: fix build

    Jonathan Ringer committed Oct 29, 2019
    Copy the full SHA
    753ab3c View commit details
Showing with 15 additions and 8 deletions.
  1. +15 −8 pkgs/development/python-modules/html2text/default.nix
23 changes: 15 additions & 8 deletions pkgs/development/python-modules/html2text/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
{ stdenv
, buildPythonPackage
, fetchPypi
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, pytest
}:

buildPythonPackage rec {
pname = "html2text";
version = "2019.9.26";
disabled = pythonOlder "3.5";

src = fetchPypi {
inherit pname version;
sha256 = "6f56057c5c2993b5cc5b347cb099bdf6d095828fef1b53ef4e2a2bf2a1be9b4f";
src = fetchFromGitHub {
owner = "Alir3z4";
repo = pname;
rev = version;
sha256 = "1gzcx4n6q71plq4zvb1z0fy3brrln0qqrd6jc89iiqn7r1ix8h87";
};

meta = with stdenv.lib; {
# python setup.py test is broken, use pytest
checkInputs = [ pytest ];
checkPhase = ''
pytest
'';

meta = with lib; {
description = "Turn HTML into equivalent Markdown-structured text";
homepage = https://github.com/Alir3z4/html2text/;
license = licenses.gpl3;
};

}