1{ lib, buildPythonPackage, fetchFromGitHub
2, protobuf
3}:
4
5buildPythonPackage rec {
6 pname = "mysql-connector";
7 version = "8.0.12";
8
9 src = fetchFromGitHub {
10 owner = "mysql";
11 repo = "mysql-connector-python";
12 rev = version;
13 sha256 = "1i3148dka4zfqzz4n4n5k0qaqbc585bdpmjwgx5vp6iiv7pgvrxp";
14 };
15
16 propagatedBuildInputs = [ protobuf ];
17
18 # Tests are failing (TODO: unknown reason)
19 # TypeError: __init__() missing 1 required positional argument: 'string'
20 # But the library should be working as expected.
21 doCheck = false;
22
23 meta = {
24 description = "A MySQL driver";
25 longDescription = ''
26 A MySQL driver that does not depend on MySQL C client libraries and
27 implements the DB API v2.0 specification.
28 '';
29 homepage = https://github.com/mysql/mysql-connector-python;
30 license = [ lib.licenses.gpl2 ];
31 maintainers = with lib.maintainers; [ primeos ];
32 };
33}