Merge pull request #80959 from B4dM4n/mysql-connector-fix-build

pythonPackages.mysql-connector: fix build for python != python3
This commit is contained in:
Michael Weiss 2020-02-24 18:56:38 +01:00 committed by GitHub
commit d6b692f483
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'