From 26c8738f3a76e2bb675979c1dbf474c8dae726eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 25 Nov 2022 18:21:12 -0800 Subject: [PATCH] reptyr: run tests using python3 --- pkgs/os-specific/linux/reptyr/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/reptyr/default.nix b/pkgs/os-specific/linux/reptyr/default.nix index f02b0acd3492..5a3f9d2d77a2 100644 --- a/pkgs/os-specific/linux/reptyr/default.nix +++ b/pkgs/os-specific/linux/reptyr/default.nix @@ -1,6 +1,8 @@ -{ stdenv, lib, fetchFromGitHub, python2 }: +{ stdenv, lib, fetchFromGitHub, python3 }: -stdenv.mkDerivation rec { +let + python = python3.withPackages (p: [ p.pexpect ]); +in stdenv.mkDerivation rec { version = "0.9.0"; pname = "reptyr"; @@ -13,9 +15,14 @@ stdenv.mkDerivation rec { makeFlags = [ "PREFIX=" "DESTDIR=$(out)" ]; - checkInputs = [ (python2.withPackages (p: [ p.pexpect ])) ]; + checkInputs = [ python ]; + doCheck = true; + checkFlags = [ + "PYTHON_CMD=${python.interpreter}" + ]; + meta = { platforms = [ "i686-linux"