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-12-10 19:07:40 +01:00
|
|
|
version = "1.4.6";
|
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-12-10 19:07:40 +01:00
|
|
|
sha256 = "f3fdaa9a38752a3b214a6fe79d7cae3653731a53e577821f9187e67cbecb2e16";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|