about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mysql-connector
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2018-02-21 18:49:10 +0100
committerMichael Weiss <dev.primeos@gmail.com>2018-02-21 18:54:26 +0100
commit09ee3770dd7d7f2ef6feecbe47958c951dd98859 (patch)
tree2c521129a08fc69a59f14902b16aa4234484951d /pkgs/development/python-modules/mysql-connector
parentec2e601871c9eab2056b7ce02f5ac85a70b5314e (diff)
pythonPackages.mysql-connector: init at 8.0.6
Diffstat (limited to 'pkgs/development/python-modules/mysql-connector')
-rw-r--r--pkgs/development/python-modules/mysql-connector/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mysql-connector/default.nix b/pkgs/development/python-modules/mysql-connector/default.nix
new file mode 100644
index 0000000000000..6a2b3de001653
--- /dev/null
+++ b/pkgs/development/python-modules/mysql-connector/default.nix
@@ -0,0 +1,30 @@
+{ lib, buildPythonPackage, fetchFromGitHub
+, protobuf
+}:
+
+buildPythonPackage rec {
+  pname = "mysql-connector";
+  version = "8.0.6";
+
+  src = fetchFromGitHub {
+    owner = "mysql";
+    repo = "mysql-connector-python";
+    rev = version;
+    sha256 = "1ygr7va56da12yp3gr7kzss9zgbs28q2lmdkw16rpxj108id4rkp";
+  };
+
+  propagatedBuildInputs = [ protobuf ];
+
+  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 ];
+  };
+}