2020-04-28 14:36:07 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, python }:
|
2018-02-21 17:49:10 +00:00
|
|
|
|
2020-01-14 20:14:49 +00:00
|
|
|
let
|
2020-04-28 14:36:07 +01:00
|
|
|
py = python;
|
2020-01-14 20:14:49 +00:00
|
|
|
in buildPythonPackage rec {
|
2018-02-21 17:49:10 +00:00
|
|
|
pname = "mysql-connector";
|
2020-07-13 21:32:37 +01:00
|
|
|
version = "8.0.21";
|
2018-02-21 17:49:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mysql";
|
|
|
|
repo = "mysql-connector-python";
|
|
|
|
rev = version;
|
2020-07-13 21:32:37 +01:00
|
|
|
sha256 = "0ky7rn9259807gji3fhvkmdmrgyaps431l9l9y6gh66i84kw1b3l";
|
2018-02-21 17:49:10 +00:00
|
|
|
};
|
|
|
|
|
2020-02-24 13:43:05 +00:00
|
|
|
propagatedBuildInputs = with py.pkgs; [ protobuf dnspython ];
|
2018-02-21 17:49:10 +00:00
|
|
|
|
2018-04-19 21:42:45 +01:00
|
|
|
# Tests are failing (TODO: unknown reason)
|
|
|
|
# TypeError: __init__() missing 1 required positional argument: 'string'
|
|
|
|
# But the library should be working as expected.
|
2018-02-21 17:49:10 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A MySQL driver";
|
|
|
|
longDescription = ''
|
|
|
|
A MySQL driver that does not depend on MySQL C client libraries and
|
|
|
|
implements the DB API v2.0 specification.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mysql/mysql-connector-python";
|
2020-04-28 14:36:07 +01:00
|
|
|
changelog = "https://raw.githubusercontent.com/mysql/mysql-connector-python/${version}/CHANGES.txt";
|
2018-02-21 17:49:10 +00:00
|
|
|
license = [ lib.licenses.gpl2 ];
|
|
|
|
maintainers = with lib.maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|