2019-08-17 19:24:29 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, libmysqlclient }:
|
2018-02-06 10:34:54 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mysqlclient";
|
2020-08-16 18:31:08 +01:00
|
|
|
version = "2.0.1";
|
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;
|
2020-08-16 18:31:08 +01:00
|
|
|
sha256 = "fb2f75aea14722390d2d8ddf384ad99da708c707a96656210a7be8af20a2c5e5";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|