Unverified Commit 3b00abb4 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by GitHub
Browse files

[staging-next] python3Packages.mysql-connector: fix build (#493121)

parents 1f295bfb f85360c5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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"))

+2 −0
Original line number Diff line number Diff line
@@ -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