From 8d4afa5f2ef0fbdf042069ac71479bba1104bbc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 27 Aug 2018 10:35:54 +0100 Subject: [PATCH] pythonPackage.backports-shutil-which: enable tests --- .../python-modules/backports-shutil-which/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/backports-shutil-which/default.nix b/pkgs/development/python-modules/backports-shutil-which/default.nix index 69a80b530d6..9900f86567e 100644 --- a/pkgs/development/python-modules/backports-shutil-which/default.nix +++ b/pkgs/development/python-modules/backports-shutil-which/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchPypi, buildPythonPackage }: +{ stdenv, fetchPypi, fetchFromGitHub, buildPythonPackage, pytest }: buildPythonPackage rec { pname = "backports.shutil_which"; @@ -9,8 +9,11 @@ buildPythonPackage rec { sha256 = "16sa3adkf71862cb9pk747pw80a2f1v5m915ijb4fgj309xrlhyx"; }; - # Tests fail: "ValueError: underlying buffer has been detached" - doCheck = false; + checkInputs = [ pytest ]; + + checkPhase = '' + py.test test + ''; meta = with stdenv.lib; { description = "Backport of shutil.which from Python 3.3";