From 483fa86c3695ab411d914cdedfe8cbcd82e18865 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Thu, 10 Sep 2020 22:07:17 +0100 Subject: [PATCH] pythonPackages.hiredis: fix tests just requires the source-directory-hiding trick --- pkgs/development/python-modules/hiredis/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/hiredis/default.nix b/pkgs/development/python-modules/hiredis/default.nix index eaeb45627b1..891c79f1b7b 100644 --- a/pkgs/development/python-modules/hiredis/default.nix +++ b/pkgs/development/python-modules/hiredis/default.nix @@ -16,8 +16,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ redis ]; checkPhase = '' + mv hiredis _hiredis ${python.interpreter} test.py ''; + pythonImportsCheck = [ "hiredis" ]; meta = with stdenv.lib; { description = "Wraps protocol parsing code in hiredis, speeds up parsing of multi bulk replies";