From 09796a644c20f6bc76883bcc3c89ab14718ee2ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=B6ller?= Date: Mon, 24 Feb 2020 14:43:05 +0100 Subject: [PATCH] pythonPackages.mysql-connector: fix build for python != python3 --- .../python-modules/mysql-connector/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/mysql-connector/default.nix b/pkgs/development/python-modules/mysql-connector/default.nix index 61a055b5ea8a..e66f102e6cab 100644 --- a/pkgs/development/python-modules/mysql-connector/default.nix +++ b/pkgs/development/python-modules/mysql-connector/default.nix @@ -1,9 +1,7 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, python3, protobuf3_6 -}: +{ lib, buildPythonPackage, fetchFromGitHub, python, protobuf3_6 }: let - python = python3.override { + py = python.override { packageOverrides = self: super: { protobuf = super.protobuf.override { protobuf = protobuf3_6; @@ -21,7 +19,7 @@ in buildPythonPackage rec { sha256 = "1jscmc5s7mwx43gvxjlqc30ylp5jjpmkqx7s3b9nllbh926p3ixg"; }; - propagatedBuildInputs = with python.pkgs; [ protobuf dnspython ]; + propagatedBuildInputs = with py.pkgs; [ protobuf dnspython ]; # Tests are failing (TODO: unknown reason) # TypeError: __init__() missing 1 required positional argument: 'string'