2018-07-17 21:11:16 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, mysql }:
|
2018-02-06 10:34:54 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mysqlclient";
|
2019-02-14 07:37:21 +00:00
|
|
|
version = "1.4.2.post1";
|
2018-02-06 10:34:54 +00:00
|
|
|
|
2019-03-18 14:57:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
mysql.connector-c
|
|
|
|
];
|
|
|
|
|
2018-02-06 10:34:54 +00:00
|
|
|
buildInputs = [
|
2018-07-17 21:11:16 +01:00
|
|
|
mysql.connector-c
|
2018-02-06 10:34:54 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests need a MySQL database
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:21 +00:00
|
|
|
sha256 = "f257d250f2675d0ef99bd318906f3cfc05cef4a2f385ea695ff32a3f04b9f9a7";
|
2018-02-06 10:34:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python interface to MySQL";
|
|
|
|
homepage = "https://github.com/PyMySQL/mysqlclient-python";
|
|
|
|
license = licenses.gpl1;
|
|
|
|
maintainers = with maintainers; [ y0no ];
|
|
|
|
};
|
|
|
|
}
|