about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyct
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-10-22 11:41:46 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-10-22 12:05:10 +0200
commit82407152f50835564a92bb497a8007994802ce51 (patch)
treef489705686b43c400e81efdd346ffc3083128682 /pkgs/development/python-modules/pyct
parent728fa553e2e2fc7209a3a3a6bd0dbefe5e2313bf (diff)
python3Packages.pyct: switch to pytestCheckHook
Diffstat (limited to 'pkgs/development/python-modules/pyct')
-rw-r--r--pkgs/development/python-modules/pyct/default.nix20
1 files changed, 12 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/pyct/default.nix b/pkgs/development/python-modules/pyct/default.nix
index b2314e6edfeb8..4538410c36230 100644
--- a/pkgs/development/python-modules/pyct/default.nix
+++ b/pkgs/development/python-modules/pyct/default.nix
@@ -3,9 +3,9 @@
 , fetchPypi
 , isPy27
 , param
+, pytestCheckHook
 , pyyaml
 , requests
-, pytest
 }:
 
 buildPythonPackage rec {
@@ -17,22 +17,26 @@ buildPythonPackage rec {
     sha256 = "23d7525b5a1567535c093aea4b9c33809415aa5f018dd77f6eb738b1226df6f7";
   };
 
-  doCheck = !isPy27;
-  checkInputs = [ pytest ];
   propagatedBuildInputs = [
     param
     pyyaml
     requests
   ];
 
-  checkPhase = ''
-    pytest
-  '';
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  doCheck = !isPy27;
+
+  pythonImportsCheck = [
+    "pyct"
+  ];
 
   meta = with lib; {
-    description = "Cli for python common tasks for users";
+    description = "ClI for Python common tasks for users";
     homepage = "https://github.com/pyviz/pyct";
     license = licenses.bsd3;
-    maintainers = [ maintainers.costrouc ];
+    maintainers = with maintainers; [ costrouc ];
   };
 }