2019-08-17 20:24:29 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, libmysqlclient }:
|
2018-02-06 11:34:54 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mysqlclient";
|
2019-08-20 13:52:24 +02:00
|
|
|
version = "1.4.4";
|
2018-02-06 11:34:54 +01:00
|
|
|
|
2019-03-18 15:57:05 +01:00
|
|
|
nativeBuildInputs = [
|
2019-08-17 20:24:29 +02:00
|
|
|
libmysqlclient
|
2019-03-18 15:57:05 +01:00
|
|
|
];
|
|
|
|
|
2018-02-06 11:34:54 +01:00
|
|
|
buildInputs = [
|
2019-08-17 20:24:29 +02:00
|
|
|
libmysqlclient
|
2018-02-06 11:34:54 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests need a MySQL database
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-20 13:52:24 +02:00
|
|
|
sha256 = "1379hab7spjp9v5fypqgy0b8vr8vnalxahm9hcsxvj2xbb2pqwww";
|
2018-02-06 11:34:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python interface to MySQL";
|
|
|
|
homepage = "https://github.com/PyMySQL/mysqlclient-python";
|
|
|
|
license = licenses.gpl1;
|
|
|
|
maintainers = with maintainers; [ y0no ];
|
|
|
|
};
|
|
|
|
}
|