1{ lib, buildPythonPackage, fetchPypi, libmysqlclient }:
2
3buildPythonPackage rec {
4 pname = "mysqlclient";
5 version = "2.1.1";
6
7 nativeBuildInputs = [
8 libmysqlclient
9 ];
10
11 buildInputs = [
12 libmysqlclient
13 ];
14
15 # Tests need a MySQL database
16 doCheck = false;
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-godX5Bn7Ed1sXtJXbsksPvqpOg98OeJjWG0e53nD14I=";
21 };
22
23 meta = with lib; {
24 description = "Python interface to MySQL";
25 homepage = "https://github.com/PyMySQL/mysqlclient-python";
26 license = licenses.gpl2Only;
27 maintainers = with maintainers; [ y0no ];
28 };
29}