1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/development/python-modules/mysql-connector/default.nix
2019-10-24 15:47:00 +02:00

34 lines
908 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub
, protobuf
}:
buildPythonPackage rec {
pname = "mysql-connector";
version = "8.0.18";
src = fetchFromGitHub {
owner = "mysql";
repo = "mysql-connector-python";
rev = version;
sha256 = "0pf91vbjigjv621dar47r741yvmdmapxh60wp20nzvlx0xchbmcm";
};
propagatedBuildInputs = [ protobuf ];
# Tests are failing (TODO: unknown reason)
# TypeError: __init__() missing 1 required positional argument: 'string'
# But the library should be working as expected.
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.
'';
homepage = https://github.com/mysql/mysql-connector-python;
license = [ lib.licenses.gpl2 ];
maintainers = with lib.maintainers; [ primeos ];
};
}