pythonPackages.pybids: use pytestCheckHook

This commit is contained in:
Sandro Jäckel 2021-02-16 01:27:06 +01:00
parent a127f69d23
commit c27e67b9f9
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,7 +1,6 @@
{ buildPythonPackage
, lib
, fetchPypi
, isPy27
, click
, num2words
, numpy
@ -11,8 +10,7 @@
, patsy
, bids-validator
, sqlalchemy
, pytest
, pathlib
, pytestCheckHook
}:
buildPythonPackage rec {
@ -36,11 +34,8 @@ buildPythonPackage rec {
sqlalchemy
];
checkInputs = [ pytest ] ++ lib.optionals isPy27 [ pathlib ];
checkPhase = ''
pytest
'';
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "bids" ];
meta = with lib; {
description = "Python tools for querying and manipulating BIDS datasets";