2019-08-17 19:24:29 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, libmysqlclient }:
|
2018-02-06 10:34:54 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mysqlclient";
|
2019-12-10 18:07:40 +00:00
|
|
|
version = "1.4.6";
|
2018-02-06 10:34:54 +00:00
|
|
|
|
2019-03-18 14:57:05 +00:00
|
|
|
nativeBuildInputs = [
|
2019-08-17 19:24:29 +01:00
|
|
|
libmysqlclient
|
2019-03-18 14:57:05 +00:00
|
|
|
];
|
|
|
|
|
2018-02-06 10:34:54 +00:00
|
|
|
buildInputs = [
|
2019-08-17 19:24:29 +01:00
|
|
|
libmysqlclient
|
2018-02-06 10:34:54 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests need a MySQL database
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-10 18:07:40 +00:00
|
|
|
sha256 = "f3fdaa9a38752a3b214a6fe79d7cae3653731a53e577821f9187e67cbecb2e16";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|