about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/mysql_python/default.nix
blob: 0ab11521cc8804a1468d3f6b2ce79bab092cc766 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv
, buildPythonPackage
, isPy3k
, fetchPypi
, nose
, pkgs
}:

buildPythonPackage rec {
  pname = "MySQL-python";
  version = "1.2.5";
  disabled = isPy3k;

  src = fetchPypi {
    inherit pname version;
    extension = "zip";
    sha256 = "0x0c2jg0bb3pp84njaqiic050qkyd7ymwhfvhipnimg58yv40441";
  };

  checkInputs = [ nose ];
  nativeBuildInputs = [ pkgs.mysql.connector-c ];
  buildInputs = [ pkgs.mysql.connector-c ];

  # plenty of failing tests
  doCheck = false;

  meta = with stdenv.lib; {
    description = "MySQL database binding for Python";
    homepage = https://sourceforge.net/projects/mysql-python;
    license = licenses.gpl3;
  };

}