893b09d324
GitOrigin-RevId: eac07edbd20ed4908b98790ba299250b5527ecdf
30 lines
701 B
Nix
30 lines
701 B
Nix
{ buildPythonPackage, fetchPypi, libmysqlclient, lib, pythonOlder }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mariadb";
|
|
version = "1.0.9";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Aqmz0KB26aDQ6hxItF7Qm2R14rak6Mge2fHoLK87/Ck=";
|
|
extension = "zip";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
libmysqlclient
|
|
];
|
|
|
|
# Requires a running MariaDB instance
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "mariadb" ];
|
|
|
|
meta = with lib; {
|
|
description = "MariaDB Connector/Python";
|
|
homepage = "https://github.com/mariadb-corporation/mariadb-connector-python";
|
|
license = licenses.lgpl21Only;
|
|
maintainers = with maintainers; [ vanilla ];
|
|
};
|
|
}
|