git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #80959 from B4dM4n/mysql-connector-fix-build

pythonPackages.mysql-connector: fix build for python != python3

commitd6b692f483bdfec585448fd4185fc9fae6a9093e authorMichael Weiss <dev.primeos@gmail.com> dateMon 24 Feb 2020, 18:56 (7 years ago) parentfd920aa09796a6
1 file changed+3−5
pkgs/development/python-modules/mysql-connector/default.nix+3−5
pkgs/development/python-modules/mysql-connector/default.nix+3−5
@@ -1,9 +1,7 @@
1−{ lib, buildPythonPackage, fetchFromGitHub
2−, python3, protobuf3_6
3−}:
1+{ lib, buildPythonPackage, fetchFromGitHub, python, protobuf3_6 }:
42
53let
6− python = python3.override {
4+ py = python.override {
75 packageOverrides = self: super: {
86 protobuf = super.protobuf.override {
97 protobuf = protobuf3_6;
@@ -21,7 +19,7 @@ in buildPythonPackage rec {
2119 sha256 = "1jscmc5s7mwx43gvxjlqc30ylp5jjpmkqx7s3b9nllbh926p3ixg";
2220 };
2321
24− propagatedBuildInputs = with python.pkgs; [ protobuf dnspython ];
22+ propagatedBuildInputs = with py.pkgs; [ protobuf dnspython ];
2523
2624 # Tests are failing (TODO: unknown reason)
2725 # TypeError: __init__() missing 1 required positional argument: 'string'