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