···4949 makeWrapper "${sage-with-env}/bin/sage" "$out/bin/sage"
5050 '';
51515252+ env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
5353+ # prevent warnings about assigning LC_* to "C" resulting in broken tests
5454+ # when run in darwin sandbox
5555+ LC_ALL = "en_US.UTF-8";
5656+ };
5757+5858+ # allow singular tests to pass in darwin sandbox
5959+ __darwinAllowLocalNetworking = true;
5260 doInstallCheck = true;
5361 installCheckPhase = ''
5462 export HOME="$TMPDIR/sage-home"
+9
pkgs/by-name/sa/sage/sagelib.nix
···11{
22+ lib,
33+ stdenv,
24 sage-src,
35 env-locations,
46 python,
···117119 libpng
118120 readline
119121 ];
122122+123123+ env = lib.optionalAttrs stdenv.cc.isClang {
124124+ # code tries to assign a unsigned long to an int in an initialized list
125125+ # leading to this error.
126126+ # https://github.com/sagemath/sage/pull/39249
127127+ NIX_CFLAGS_COMPILE = "-Wno-error=c++11-narrowing-const-reference";
128128+ };
120129121130 propagatedBuildInputs = [
122131 # native dependencies (TODO: determine which ones need to be propagated)
···11+diff --git a/master/buildbot/util/git.py b/master/buildbot/util/git.py
22+index 0ed9ac3037f..49ef359537c 100644
33+--- a/master/buildbot/util/git.py
44++++ b/master/buildbot/util/git.py
55+@@ -67,8 +67,8 @@ def getSshCommand(keyPath, knownHostsPath):
66+77+88+ def scp_style_to_url_syntax(address, port=22, scheme='ssh'):
99+- if any(['://' in address, ':\\' in address, ':' not in address]):
1010+- # the address already has a URL syntax or is a local path
1111++ if not isinstance(address, str) or any(['://' in address, ':\\' in address, ':' not in address]):
1212++ # the address already has a URL syntax or is a local path or is a renderable
1313+ return address
1414+ host, path = address.split(':')
1515+ return f'{scheme}://{host}:{port}/{path}'