Merge pull request #112103 from fabaff/tests-html2text

python3Packages.html2text: switch to pytestCheckHook
This commit is contained in:
Sandro 2021-02-06 20:16:31 +01:00 committed by GitHub
commit f777388ff0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,8 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder { lib
, pytest , buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -14,15 +17,13 @@ buildPythonPackage rec {
sha256 = "1y924clp2hiqg3a9437z808p29mqcx537j5fmz71plx8qrcm5jf9"; sha256 = "1y924clp2hiqg3a9437z808p29mqcx537j5fmz71plx8qrcm5jf9";
}; };
# python setup.py test is broken, use pytest checkInputs = [ pytestCheckHook ];
checkInputs = [ pytest ];
checkPhase = '' pythonImportsCheck = [ "html2text" ];
pytest
'';
meta = with lib; { meta = with lib; {
description = "Turn HTML into equivalent Markdown-structured text"; description = "Turn HTML into equivalent Markdown-structured text";
homepage = "https://github.com/Alir3z4/html2text/"; homepage = "https://github.com/Alir3z4/html2text/";
license = licenses.gpl3; license = licenses.gpl3Only;
}; };
} }