Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 701 B view raw
1{ buildPythonPackage, fetchPypi, libmysqlclient, lib, pythonOlder }: 2 3buildPythonPackage rec { 4 pname = "mariadb"; 5 version = "1.1.4"; 6 7 disabled = pythonOlder "3.6"; 8 9 src = fetchPypi { 10 inherit pname version; 11 hash = "sha256-c6CsvSrOOB7BvPxhztenmlGeZsAsJOEq5tJ7qgNxeHY="; 12 extension = "zip"; 13 }; 14 15 nativeBuildInputs = [ 16 libmysqlclient 17 ]; 18 19 # Requires a running MariaDB instance 20 doCheck = false; 21 22 pythonImportsCheck = [ "mariadb" ]; 23 24 meta = with lib; { 25 description = "MariaDB Connector/Python"; 26 homepage = "https://github.com/mariadb-corporation/mariadb-connector-python"; 27 license = licenses.lgpl21Only; 28 maintainers = with maintainers; [ vanilla ]; 29 }; 30}