pythonPackage.backports-shutil-which: enable tests

This commit is contained in:
Jörg Thalheim 2018-08-27 10:35:54 +01:00 committed by Jaakko Luttinen
parent d0ce8834ae
commit 8d4afa5f2e
No known key found for this signature in database
GPG Key ID: 7B1CE13152E6B964

View File

@ -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";