about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pscript
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-12-21 19:33:39 +0100
committerMatthias Beyer <mail@beyermatthias.de>2022-01-15 09:07:54 +0100
commitb90efe70883d5de9ccd4aa99f56f83b483fe4b97 (patch)
treee1e468fc1322ee88043bc81cf6333690df6e97fa /pkgs/development/python-modules/pscript
parent6304e619bca38074a1933a62993a87dee1df226f (diff)
pythonPackages.pscript: Add test inputs
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Suggested-by: Joachim Ernst <mail-maintainer@0x4A6F.dev>
Diffstat (limited to 'pkgs/development/python-modules/pscript')
-rw-r--r--pkgs/development/python-modules/pscript/default.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pscript/default.nix b/pkgs/development/python-modules/pscript/default.nix
index 5e200c1d406f6..fae2c8a428185 100644
--- a/pkgs/development/python-modules/pscript/default.nix
+++ b/pkgs/development/python-modules/pscript/default.nix
@@ -1,6 +1,8 @@
 { lib
 , buildPythonPackage
 , fetchFromGitHub
+, pytestCheckHook
+, nodejs
 }:
 
 buildPythonPackage rec {
@@ -15,7 +17,15 @@ buildPythonPackage rec {
     sha256 = "169px5n4jjnpdn9y86f28qwd95bwf1q1rz0a1h3lb5nn5c6ym8c4";
   };
 
-  doCheck = false;
+  checkInputs = [
+    pytestCheckHook
+    nodejs
+  ];
+
+  preCheck = ''
+    # do not execute legacy tests
+    rm -rf pscript_legacy
+  '';
 
   meta = with lib; {
     description = "Python to JavaScript compiler";