Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 632 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder 2, pytest 3}: 4 5buildPythonPackage rec { 6 pname = "html2text"; 7 version = "2020.1.16"; 8 disabled = pythonOlder "3.5"; 9 10 src = fetchFromGitHub { 11 owner = "Alir3z4"; 12 repo = pname; 13 rev = version; 14 sha256 = "1y924clp2hiqg3a9437z808p29mqcx537j5fmz71plx8qrcm5jf9"; 15 }; 16 17 # python setup.py test is broken, use pytest 18 checkInputs = [ pytest ]; 19 checkPhase = '' 20 pytest 21 ''; 22 23 meta = with lib; { 24 description = "Turn HTML into equivalent Markdown-structured text"; 25 homepage = "https://github.com/Alir3z4/html2text/"; 26 license = licenses.gpl3; 27 }; 28}