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