Merge pull request #92802 from misuzu/rednose-macos

pythonPackages.rednose: fix build on macOS
This commit is contained in:
Mario Rodas 2020-07-15 20:24:47 -05:00 committed by GitHub
commit 178de8429d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy27, nose, six, colorama, termstyle }:
{ stdenv, buildPythonPackage, fetchPypi, isPy27, pythonAtLeast
, nose, six, colorama, termstyle }:
buildPythonPackage rec {
pname = "rednose";
@ -15,7 +16,8 @@ buildPythonPackage rec {
# Do not test on Python 2 because the tests suite gets stuck
# https://github.com/NixOS/nixpkgs/issues/60786
doCheck = !(isPy27);
# Also macOS tests are broken on python38
doCheck = !(isPy27 || (stdenv.isDarwin && pythonAtLeast "3.8"));
checkInputs = [ six ];
propagatedBuildInputs = [ nose colorama termstyle ];