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