1{ stdenv, buildPythonPackage, isPy27, fetchPypi, libmysqlclient }:
2
3buildPythonPackage rec {
4 pname = "mysqlclient";
5 version = "2.0.1";
6 disabled = isPy27;
7
8 nativeBuildInputs = [
9 libmysqlclient
10 ];
11
12 buildInputs = [
13 libmysqlclient
14 ];
15
16 # Tests need a MySQL database
17 doCheck = false;
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "fb2f75aea14722390d2d8ddf384ad99da708c707a96656210a7be8af20a2c5e5";
22 };
23
24 meta = with stdenv.lib; {
25 description = "Python interface to MySQL";
26 homepage = "https://github.com/PyMySQL/mysqlclient-python";
27 license = licenses.gpl1;
28 maintainers = with maintainers; [ y0no ];
29 };
30}