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