Merge pull request #56744 from matthewbauer/macos-10-12

Update macOS to 10.12
This commit is contained in:
Matthew Bauer
2019-04-26 22:20:03 -04:00
committed by GitHub
196 changed files with 1221 additions and 3284 deletions

View File

@@ -31,7 +31,7 @@ if isPyPy then null else buildPythonPackage rec {
# The tests use -Werror but with python3.6 clang detects some unreachable code.
NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.cc.isClang [ "-Wno-unused-command-line-argument" "-Wno-unreachable-code" ];
doCheck = !stdenv.hostPlatform.isMusl; # TODO: Investigate
doCheck = !stdenv.hostPlatform.isMusl && !stdenv.isDarwin; # TODO: Investigate
checkPhase = ''
py.test -k "not test_char_pointer_conversion"
'';

View File

@@ -53,14 +53,6 @@ buildPythonPackage rec {
py.test --disable-pytest-warnings tests
'';
# The test assumes that if we're on Sierra or higher, that we use `getentropy`, but for binary
# compatibility with pre-Sierra for binary caches, we hide that symbol so the library doesn't
# use it. This boils down to them checking compatibility with `getentropy` in two different places,
# so let's neuter the second test.
postPatch = ''
substituteInPlace ./tests/hazmat/backends/test_openssl.py --replace '"16.0"' '"99.0"'
'';
# IOKit's dependencies are inconsistent between OSX versions, so this is the best we
# can do until nix 1.11's release
__impureHostDeps = [ "/usr/lib" ];

View File

@@ -60,7 +60,7 @@ buildPythonPackage rec {
url = "https://github.com/matplotlib/matplotlib/commit/2980184d092382a40ab21f95b79582ffae6e19d6.patch";
sha256 = "1c0wj28zy8s5h6qiavx9zzbhlmhjwpzbc3fyyw9039mbnqk0spg2";
})
] ++ stdenv.lib.optionals stdenv.isDarwin [ ./darwin-stdenv-2.2.3.patch ];
];
# Matplotlib tries to find Tcl/Tk by opening a Tk window and asking the
# corresponding interpreter object for its library paths. This fails if

View File

@@ -1,10 +0,0 @@
--- a/src/_macosx.m 2015-10-30 00:46:20.000000000 +0200
+++ b/src/_macosx.m 2015-11-01 14:52:25.000000000 +0200
@@ -6264,6 +6264,7 @@
static bool verify_framework(void)
{
+ return true; /* nixpkgs darwin stdenv */
#ifdef COMPILING_FOR_10_6
NSRunningApplication* app = [NSRunningApplication currentApplication];
NSApplicationActivationPolicy activationPolicy = [app activationPolicy];

View File

@@ -1,12 +0,0 @@
diff -ruN matplotlib-3.0.0/src/_macosx.m matplotlib-3.0.0.patched/src/_macosx.m
--- matplotlib-3.0.0/src/_macosx.m 2018-09-16 00:35:21.000000000 +0200
+++ matplotlib-3.0.0.patched/src/_macosx.m 2018-11-03 13:14:33.000000000 +0100
@@ -2577,6 +2577,7 @@
static bool verify_framework(void)
{
+ return true; /* nixpkgs darwin stdenv */
ProcessSerialNumber psn;
/* These methods are deprecated, but they don't require the app to
have started */

View File

@@ -52,8 +52,7 @@ buildPythonPackage rec {
++ stdenv.lib.optionals enableQt [ pyqt4 ];
patches =
[ ./basedirlist.patch ] ++
stdenv.lib.optionals stdenv.isDarwin [ ./darwin-stdenv.patch ];
[ ./basedirlist.patch ];
# Matplotlib tries to find Tcl/Tk by opening a Tk window and asking the
# corresponding interpreter object for its library paths. This fails if

View File

@@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, pytestrunner, pytest, mock }:
, stdenv, pytestrunner, pytest, mock }:
buildPythonPackage rec {
pname = "paho-mqtt";
@@ -20,6 +20,8 @@ buildPythonPackage rec {
checkInputs = [ pytestrunner pytest ] ++ lib.optional (!isPy3k) mock;
doCheck = !stdenv.isDarwin;
meta = with lib; {
homepage = https://eclipse.org/paho;
description = "MQTT version 3.1.1 client class";

View File

@@ -5,6 +5,7 @@
, prompt_toolkit, pygments
#, optional, dependencies
, jinja2, whoosh, pytest
, stdenv
}:
buildPythonPackage rec {
@@ -28,6 +29,8 @@ buildPythonPackage rec {
jinja2 whoosh
];
doCheck = !stdenv.isDarwin;
checkInputs = ([
pytest
]) ++ [

View File

@@ -21,6 +21,8 @@ buildPythonPackage rec {
checkInputs = [ unittest2 scripttest pytz mock testtools testrepository ];
propagatedBuildInputs = [ pbr tempita decorator sqlalchemy six sqlparse ];
doCheck = !stdenv.isDarwin;
prePatch = ''
sed -i -e /tempest-lib/d \
-e /testtools/d \

View File

@@ -30,6 +30,8 @@ buildPythonPackage rec {
buildInputs = [ xorg.libX11 ];
propagatedBuildInputs = [ six ];
doCheck = !stdenv.isDarwin;
meta = with stdenv.lib; {
description = "Fully functional X client library for Python programs";
homepage = http://python-xlib.sourceforge.net/;

View File

@@ -1,5 +1,6 @@
{ lib, fetchPypi, buildPythonPackage, intervaltree, pyflakes, requests, lxml, google-i18n-address
, pycountry, html5lib, six
, stdenv
}:
buildPythonPackage rec {
@@ -26,6 +27,8 @@ buildPythonPackage rec {
export HOME=$(mktemp -d)
'';
doCheck = !stdenv.isDarwin;
meta = with lib; {
description = "Tool generating IETF RFCs and drafts from XML sources";
homepage = https://tools.ietf.org/tools/xml2rfc/trac/;

View File

@@ -19,6 +19,8 @@ buildPythonPackage rec {
propagatedBuildInputs = [ zope_interface zope_exceptions zope_testing six ];
doCheck = !stdenv.isDarwin;
meta = with stdenv.lib; {
description = "A flexible test runner with layer support";
homepage = https://pypi.python.org/pypi/zope.testrunner;