diff --git a/pkgs/development/python-modules/mysql-connector/0001-Revert-Fix-MacOS-wheels-platform-tag.patch b/pkgs/development/python-modules/mysql-connector/0001-Revert-Fix-MacOS-wheels-platform-tag.patch index 4b8e40d6588b..0e942f269f73 100644 --- a/pkgs/development/python-modules/mysql-connector/0001-Revert-Fix-MacOS-wheels-platform-tag.patch +++ b/pkgs/development/python-modules/mysql-connector/0001-Revert-Fix-MacOS-wheels-platform-tag.patch @@ -2,16 +2,16 @@ diff --git a/cpydist/__init__.py b/cpydist/__init__.py index 7fdbaf2..3c427da 100644 --- a/cpydist/__init__.py +++ b/cpydist/__init__.py -@@ -38,7 +38,7 @@ import tempfile +@@ -37,7 +37,7 @@ import tempfile from glob import glob from pathlib import Path - from subprocess import PIPE, Popen, check_call + from subprocess import PIPE, Popen -from sysconfig import get_config_vars, get_python_version +from sysconfig import get_python_version from setuptools import Command from setuptools.command.build_ext import build_ext -@@ -68,8 +68,6 @@ version_py = os.path.join("lib", "mysql", "connector", "version.py") +@@ -67,8 +67,6 @@ version_py = os.path.join("lib", "mysql", "connector", "version.py") with open(version_py, "rb") as fp: exec(compile(fp.read(), version_py, "exec")) @@ -19,4 +19,4 @@ index 7fdbaf2..3c427da 100644 - get_config_vars()["MACOSX_DEPLOYMENT_TARGET"] = "11.0" COMMON_USER_OPTIONS = [ - ( \ No newline at end of file + ( diff --git a/pkgs/development/python-modules/mysql-connector/default.nix b/pkgs/development/python-modules/mysql-connector/default.nix index 42b67a1748fe..87ee1887ed02 100644 --- a/pkgs/development/python-modules/mysql-connector/default.nix +++ b/pkgs/development/python-modules/mysql-connector/default.nix @@ -29,6 +29,8 @@ buildPythonPackage rec { hash = "sha256-EwdJpiyplck26Tc9SiczxGieJ3GcTGMQva/fDzhzWn4="; }; + sourceRoot = "${src.name}/mysql-connector-python"; + patches = [ # mysql-connector overrides MACOSX_DEPLOYMENT_TARGET to 11. # This makes the installation with nixpkgs fail. I suspect, that's