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