python3Packages.cmarkgfm:: switch to pytestCheckHook

This commit is contained in:
Fabian Affolter
2021-03-25 09:18:21 +01:00
parent 6a4b2fa3c2
commit 5173a4db4d
@@ -1,4 +1,9 @@
{ lib, buildPythonPackage, fetchPypi, cffi, pytest }: { lib
, buildPythonPackage
, cffi
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "cmarkgfm"; pname = "cmarkgfm";
@@ -11,15 +16,14 @@ buildPythonPackage rec {
propagatedBuildInputs = [ cffi ]; propagatedBuildInputs = [ cffi ];
checkInputs = [ pytest ]; checkInputs = [ pytestCheckHook ];
checkPhase = '' pythonImportsCheck = [ "cmarkgfm" ];
py.test
'';
meta = with lib; { meta = with lib; {
description = "Minimal bindings to GitHub's fork of cmark"; description = "Minimal bindings to GitHub's fork of cmark";
homepage = "https://github.com/jonparrott/cmarkgfm"; homepage = "https://github.com/jonparrott/cmarkgfm";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fab ];
}; };
} }