Skip to content

Commit

Permalink
pythonPackages.mysql-connector: init at 8.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
primeos committed Feb 21, 2018
1 parent ec2e601 commit 09ee377
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions 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;

This comment has been minimized.

Copy link
@dotlambda

dotlambda Feb 21, 2018

Member

@primeos Next time, please add a comment with the reason, e.g. "requires a MySQL server to be set up".

This comment has been minimized.

Copy link
@primeos

primeos Feb 23, 2018

Author Member

@dotlambda Is that a general convention for Python packaging? If so it would make sense to mention this in the nixpkgs manual (Python section). I was aware that many packages with disabled tests specify a reason for it but didn't think it would be that important. In this case though I didn't have enough time to analyze the stack trace and just disabled the tests as I was going to test it manually anyway (just needed the package for a script and decided to maintain/push it).


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 ];
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -10869,6 +10869,7 @@ in {
};
};

mysql-connector = callPackage ../development/python-modules/mysql-connector { };

mysql_connector_repackaged = buildPythonPackage rec {
name = "mysql-connector-repackaged-0.3.1";
Expand Down

0 comments on commit 09ee377

Please sign in to comment.