Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / html2text / default.nix
blob95698872a08fe61f5abaeb15ef6695004693b753
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "html2text";
10   version = "2020.1.16";
11   disabled = pythonOlder "3.5";
13   src = fetchFromGitHub {
14     owner = "Alir3z4";
15     repo = pname;
16     rev = version;
17     sha256 = "1y924clp2hiqg3a9437z808p29mqcx537j5fmz71plx8qrcm5jf9";
18   };
20   nativeCheckInputs = [ pytestCheckHook ];
22   pythonImportsCheck = [ "html2text" ];
24   meta = with lib; {
25     description = "Turn HTML into equivalent Markdown-structured text";
26     homepage = "https://github.com/Alir3z4/html2text/";
27     license = licenses.gpl3Only;
28   };