Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi, mysql }: 2 3buildPythonPackage rec { 4 pname = "mysqlclient"; 5 version = "1.4.2.post1"; 6 7 nativeBuildInputs = [ 8 mysql.connector-c 9 ]; 10 11 buildInputs = [ 12 mysql.connector-c 13 ]; 14 15 # Tests need a MySQL database 16 doCheck = false; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "f257d250f2675d0ef99bd318906f3cfc05cef4a2f385ea695ff32a3f04b9f9a7"; 21 }; 22 23 meta = with stdenv.lib; { 24 description = "Python interface to MySQL"; 25 homepage = "https://github.com/PyMySQL/mysqlclient-python"; 26 license = licenses.gpl1; 27 maintainers = with maintainers; [ y0no ]; 28 }; 29}