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/default.nix

29 lines
632 B
Nix
Raw Normal View History

2019-10-29 05:30:21 +00:00
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
, pytest
}:
buildPythonPackage rec {
pname = "html2text";
version = "2020.1.16";
2019-10-29 05:30:21 +00:00
disabled = pythonOlder "3.5";
2019-10-29 05:30:21 +00:00
src = fetchFromGitHub {
owner = "Alir3z4";
repo = pname;
rev = version;
sha256 = "1y924clp2hiqg3a9437z808p29mqcx537j5fmz71plx8qrcm5jf9";
};
2019-10-29 05:30:21 +00:00
# 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;
};
}