python3Packages.cmarkgfm:: switch to pytestCheckHook

This commit is contained in:
Fabian Affolter 2021-03-14 13:31:45 +01:00
parent 6a4b2fa3c2
commit 5173a4db4d

View file

@ -1,4 +1,9 @@
{ lib, buildPythonPackage, fetchPypi, cffi, pytest }:
{ lib
, buildPythonPackage
, cffi
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "cmarkgfm";
@ -11,15 +16,14 @@ buildPythonPackage rec {
propagatedBuildInputs = [ cffi ];
checkInputs = [ pytest ];
checkInputs = [ pytestCheckHook ];
checkPhase = ''
py.test
'';
pythonImportsCheck = [ "cmarkgfm" ];
meta = with lib; {
description = "Minimal bindings to GitHub's fork of cmark";
homepage = "https://github.com/jonparrott/cmarkgfm";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}