about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pybids
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-02-16 01:27:06 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-02-16 06:56:16 +0100
commitc27e67b9f9a1be42757a11373ffb99884133f793 (patch)
treea8b30bb5adfec7b741701a85a02f29db6ca3fe1e /pkgs/development/python-modules/pybids
parenta127f69d23d43d16d8769ff75e6c26548113d759 (diff)
pythonPackages.pybids: use pytestCheckHook
Diffstat (limited to 'pkgs/development/python-modules/pybids')
-rw-r--r--pkgs/development/python-modules/pybids/default.nix11
1 files changed, 3 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/pybids/default.nix b/pkgs/development/python-modules/pybids/default.nix
index 9cca6cf57efca..034bdb6363a0a 100644
--- a/pkgs/development/python-modules/pybids/default.nix
+++ b/pkgs/development/python-modules/pybids/default.nix
@@ -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";