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-12-14 18:15:49 +00:00
|
|
|
version = "1.3.14";
|
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-12-14 18:15:49 +00:00
|
|
|
sha256 = "0symgjmzkckzsxx3piaxywls8q19s1pdgbmpm0v1m425wnfax09r";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|