2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
libmysqlclient,
|
|
|
|
lib,
|
|
|
|
pythonOlder,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
}:
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mariadb";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.1.10";
|
|
|
|
pyproject = true;
|
2021-12-24 04:21:11 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-12-24 04:21:11 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mariadb-corporation";
|
|
|
|
repo = "mariadb-connector-python";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-YpA65J8ozKJfpOc4hZLdgCcT3j/lqRiNeX7k8U/aYkE=";
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
libmysqlclient # for mariadb_config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ libmysqlclient ];
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
# Requires a running MariaDB instance
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mariadb" ];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2021-12-24 04:21:11 +00:00
|
|
|
description = "MariaDB Connector/Python";
|
|
|
|
homepage = "https://github.com/mariadb-corporation/mariadb-connector-python";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
maintainers = [ ];
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
}
|