mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
pythonPackages.mysql-connector: fix build for python != python3
This commit is contained in:
parent
0507717aae
commit
09796a644c
@ -1,9 +1,7 @@
|
|||||||
{ lib, buildPythonPackage, fetchFromGitHub
|
{ lib, buildPythonPackage, fetchFromGitHub, python, protobuf3_6 }:
|
||||||
, python3, protobuf3_6
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
python = python3.override {
|
py = python.override {
|
||||||
packageOverrides = self: super: {
|
packageOverrides = self: super: {
|
||||||
protobuf = super.protobuf.override {
|
protobuf = super.protobuf.override {
|
||||||
protobuf = protobuf3_6;
|
protobuf = protobuf3_6;
|
||||||
@ -21,7 +19,7 @@ in buildPythonPackage rec {
|
|||||||
sha256 = "1jscmc5s7mwx43gvxjlqc30ylp5jjpmkqx7s3b9nllbh926p3ixg";
|
sha256 = "1jscmc5s7mwx43gvxjlqc30ylp5jjpmkqx7s3b9nllbh926p3ixg";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with python.pkgs; [ protobuf dnspython ];
|
propagatedBuildInputs = with py.pkgs; [ protobuf dnspython ];
|
||||||
|
|
||||||
# Tests are failing (TODO: unknown reason)
|
# Tests are failing (TODO: unknown reason)
|
||||||
# TypeError: __init__() missing 1 required positional argument: 'string'
|
# TypeError: __init__() missing 1 required positional argument: 'string'
|
||||||
|
Loading…
Reference in New Issue
Block a user