2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
libmysqlclient,
|
|
|
|
lib,
|
|
|
|
pythonOlder,
|
|
|
|
}:
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mariadb";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.1.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-c6CsvSrOOB7BvPxhztenmlGeZsAsJOEq5tJ7qgNxeHY=";
|
2021-12-24 04:21:11 +00:00
|
|
|
extension = "zip";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ libmysqlclient ];
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|