diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/html2text/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/html2text/default.nix | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/html2text/default.nix b/nixpkgs/pkgs/development/python-modules/html2text/default.nix index dd23ad6c619d..51b92c8a4f69 100644 --- a/nixpkgs/pkgs/development/python-modules/html2text/default.nix +++ b/nixpkgs/pkgs/development/python-modules/html2text/default.nix @@ -1,5 +1,8 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder -, pytest +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, pytestCheckHook }: buildPythonPackage rec { @@ -14,15 +17,13 @@ buildPythonPackage rec { sha256 = "1y924clp2hiqg3a9437z808p29mqcx537j5fmz71plx8qrcm5jf9"; }; - # python setup.py test is broken, use pytest - checkInputs = [ pytest ]; - checkPhase = '' - pytest - ''; + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "html2text" ]; meta = with lib; { description = "Turn HTML into equivalent Markdown-structured text"; homepage = "https://github.com/Alir3z4/html2text/"; - license = licenses.gpl3; + license = licenses.gpl3Only; }; } |