nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 30 lines 702 B view raw
1{ buildPythonPackage, fetchPypi, libmysqlclient, lib, pythonOlder }: 2 3buildPythonPackage rec { 4 pname = "mariadb"; 5 version = "1.0.11"; 6 7 disabled = pythonOlder "3.6"; 8 9 src = fetchPypi { 10 inherit pname version; 11 hash = "sha256-dpFsiSvJNsWw824loUEfZRp7fOl4mSrjqN5+KD79rL8="; 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}