1{ stdenv
2, buildPythonPackage
3, isPy3k
4, fetchPypi
5, nose
6, pkgs
7}:
8
9buildPythonPackage rec {
10 pname = "MySQL-python";
11 version = "1.2.5";
12 disabled = isPy3k;
13
14 src = fetchPypi {
15 inherit pname version;
16 extension = "zip";
17 sha256 = "0x0c2jg0bb3pp84njaqiic050qkyd7ymwhfvhipnimg58yv40441";
18 };
19
20 checkInputs = [ nose ];
21 nativeBuildInputs = [ pkgs.mysql.connector-c ];
22 buildInputs = [ pkgs.mysql.connector-c ];
23
24 # plenty of failing tests
25 doCheck = false;
26
27 meta = with stdenv.lib; {
28 description = "MySQL database binding for Python";
29 homepage = https://sourceforge.net/projects/mysql-python;
30 license = licenses.gpl3;
31 };
32
33}