2018-07-17 21:11:16 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, mysql }:
|
2018-02-06 10:34:54 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mysqlclient";
|
2018-07-22 11:13:49 +01:00
|
|
|
version = "1.3.13";
|
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;
|
2018-07-22 11:13:49 +01:00
|
|
|
sha256 = "ff8ee1be84215e6c30a746b728c41eb0701a46ca76e343af445b35ce6250644f";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|