My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/html2text/default.nix

29 lines
616 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "html2text";
version = "2020.1.16";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "Alir3z4";
repo = pname;
rev = version;
sha256 = "1y924clp2hiqg3a9437z808p29mqcx537j5fmz71plx8qrcm5jf9";
};
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "html2text" ];
meta = with lib; {
description = "Turn HTML into equivalent Markdown-structured text";
homepage = "https://github.com/Alir3z4/html2text/";
license = licenses.gpl3Only;
};
}