pythonPackages.pybids: use pytestCheckHook
This commit is contained in:
parent
a127f69d23
commit
c27e67b9f9
@ -1,7 +1,6 @@
|
|||||||
{ buildPythonPackage
|
{ buildPythonPackage
|
||||||
, lib
|
, lib
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPy27
|
|
||||||
, click
|
, click
|
||||||
, num2words
|
, num2words
|
||||||
, numpy
|
, numpy
|
||||||
@ -11,8 +10,7 @@
|
|||||||
, patsy
|
, patsy
|
||||||
, bids-validator
|
, bids-validator
|
||||||
, sqlalchemy
|
, sqlalchemy
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, pathlib
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -36,11 +34,8 @@ buildPythonPackage rec {
|
|||||||
sqlalchemy
|
sqlalchemy
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ pytest ] ++ lib.optionals isPy27 [ pathlib ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
pythonImportsCheck = [ "bids" ];
|
||||||
checkPhase = ''
|
|
||||||
pytest
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python tools for querying and manipulating BIDS datasets";
|
description = "Python tools for querying and manipulating BIDS datasets";
|
||||||
|
Loading…
Reference in New Issue
Block a user