push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
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
from glob import glob
from pathlib import Path
from subprocess import PIPE, Popen, check_call
-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")
with open(version_py, "rb") as fp:
exec(compile(fp.read(), version_py, "exec"))
-if "MACOSX_DEPLOYMENT_TARGET" in get_config_vars():
- get_config_vars()["MACOSX_DEPLOYMENT_TARGET"] = "11.0"
COMMON_USER_OPTIONS = [
(

View File

@@ -0,0 +1,72 @@
{
lib,
buildPythonPackage,
dnspython,
fetchFromGitHub,
protobuf,
pythonOlder,
mysql80,
openssl,
pkgs,
}:
buildPythonPackage rec {
pname = "mysql-connector";
version = "8.0.33";
format = "setuptools";
disabled = pythonOlder "3.7";
setupPyBuildFlags = [
"--with-mysql-capi=${mysql80}"
"--with-openssl-include-dir=${openssl.dev}/include"
"--with-openssl-lib-dir=${lib.getLib openssl}/lib"
"-L"
"${lib.getLib pkgs.zstd}/lib:${lib.getLib mysql80}/lib"
];
src = fetchFromGitHub {
owner = "mysql";
repo = "mysql-connector-python";
rev = version;
hash = "sha256-GtMq7E2qBqFu54hjUotzPyxScTKXNdEQcmgHnS7lBhc=";
};
patches = [
# mysql-connector overrides MACOSX_DEPLOYMENT_TARGET to 11.
# This makes the installation with nixpkgs fail. I suspect, that's
# because stdenv.hostPlatform.darwinSdkVersion is (currently) set to
# 10.12. The patch reverts
# https://github.com/mysql/mysql-connector-python/commit/d1e89fd3d7391084cdf35b0806cb5d2a4b413654
./0001-Revert-Fix-MacOS-wheels-platform-tag.patch
];
nativeBuildInputs = [ mysql80 ];
propagatedBuildInputs = [
dnspython
protobuf
mysql80
openssl
pkgs.zstd
];
pythonImportsCheck = [ "mysql" ];
# Tests require a running MySQL instance
doCheck = false;
meta = with lib; {
description = "MySQL driver";
longDescription = ''
A MySQL driver that does not depend on MySQL C client libraries and
implements the DB API v2.0 specification.
'';
homepage = "https://github.com/mysql/mysql-connector-python";
changelog = "https://raw.githubusercontent.com/mysql/mysql-connector-python/${version}/CHANGES.txt";
license = licenses.gpl2Only;
maintainers = with maintainers; [
neosimsim
];
};
}