2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, libmysqlclient }:
|
2018-02-06 11:34:54 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mysqlclient";
|
2021-11-25 14:47:00 -08:00
|
|
|
version = "2.1.0";
|
2018-02-06 11:34:54 +01:00
|
|
|
|
2019-03-18 15:57:05 +01:00
|
|
|
nativeBuildInputs = [
|
2019-08-17 21:24:29 +03:00
|
|
|
libmysqlclient
|
2019-03-18 15:57:05 +01:00
|
|
|
];
|
|
|
|
|
2018-02-06 11:34:54 +01:00
|
|
|
buildInputs = [
|
2019-08-17 21:24:29 +03:00
|
|
|
libmysqlclient
|
2018-02-06 11:34:54 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests need a MySQL database
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-11-25 14:47:00 -08:00
|
|
|
sha256 = "973235686f1b720536d417bf0a0d39b4ab3d5086b2b6ad5e6752393428c02b12";
|
2018-02-06 11:34:54 +01:00
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-02-06 11:34:54 +01:00
|
|
|
description = "Python interface to MySQL";
|
|
|
|
homepage = "https://github.com/PyMySQL/mysqlclient-python";
|
|
|
|
license = licenses.gpl1;
|
|
|
|
maintainers = with maintainers; [ y0no ];
|
|
|
|
};
|
|
|
|
}
|