2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, libmysqlclient }:
|
2018-02-06 10:34:54 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mysqlclient";
|
2021-01-02 06:07:05 +00:00
|
|
|
version = "2.0.3";
|
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;
|
2021-01-02 06:07:05 +00:00
|
|
|
sha256 = "f6ebea7c008f155baeefe16c56cd3ee6239f7a5a9ae42396c2f1860f08a7c432";
|
2018-02-06 10:34:54 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-02-06 10:34:54 +00:00
|
|
|
description = "Python interface to MySQL";
|
|
|
|
homepage = "https://github.com/PyMySQL/mysqlclient-python";
|
|
|
|
license = licenses.gpl1;
|
|
|
|
maintainers = with maintainers; [ y0no ];
|
|
|
|
};
|
|
|
|
}
|