Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 29 lines 616 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, mysql }: 2 3buildPythonPackage rec { 4 pname = "mysqlclient"; 5 version = "1.4.4"; 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 = "1379hab7spjp9v5fypqgy0b8vr8vnalxahm9hcsxvj2xbb2pqwww"; 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}