2023-09-15 14:06:33 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
libmysqlclient,
|
|
|
|
pkg-config,
|
|
|
|
}:
|
2018-02-06 11:34:54 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mysqlclient";
|
2024-02-09 23:30:24 +00:00
|
|
|
version = "2.2.4";
|
2023-12-07 16:53:02 +13:00
|
|
|
format = "setuptools";
|
2018-02-06 11:34:54 +01:00
|
|
|
|
2019-03-18 15:57:05 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2018-02-06 11:34:54 +01:00
|
|
|
buildInputs = [ libmysqlclient ];
|
|
|
|
|
|
|
|
# Tests need a MySQL database
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-09 23:30:24 +00:00
|
|
|
hash = "sha256-M7yfs0ZOfXwQser3M2xf+PKj07iLq0MhFq0kkL6zv0E=";
|
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";
|
2022-09-29 10:54:21 +02:00
|
|
|
license = licenses.gpl2Only;
|
2018-02-06 11:34:54 +01:00
|
|
|
maintainers = with maintainers; [ y0no ];
|
|
|
|
};
|
|
|
|
}
|