2019-09-21 19:05:09 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, mysql }:
|
2018-02-06 10:34:54 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mysqlclient";
|
2019-08-20 12:52:24 +01:00
|
|
|
version = "1.4.4";
|
2018-02-06 10:34:54 +00:00
|
|
|
|
2019-03-18 14:57:05 +00:00
|
|
|
nativeBuildInputs = [
|
2019-09-21 19:05:09 +01:00
|
|
|
mysql.connector-c
|
2019-03-18 14:57:05 +00:00
|
|
|
];
|
|
|
|
|
2018-02-06 10:34:54 +00:00
|
|
|
buildInputs = [
|
2019-09-21 19:05:09 +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-08-20 12:52:24 +01:00
|
|
|
sha256 = "1379hab7spjp9v5fypqgy0b8vr8vnalxahm9hcsxvj2xbb2pqwww";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|