From 07d389332467b0b6e4b7c00a6ceae264c84efa41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 5 Aug 2024 05:47:00 -0700 Subject: [PATCH] python312Packages.mariadb: 1.1.4 -> 1.1.10 --- .../python-modules/mariadb/default.nix | 32 ++++++++++++------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/mariadb/default.nix b/pkgs/development/python-modules/mariadb/default.nix index a2027a59f02f..d166277a459a 100644 --- a/pkgs/development/python-modules/mariadb/default.nix +++ b/pkgs/development/python-modules/mariadb/default.nix @@ -1,35 +1,43 @@ { buildPythonPackage, - fetchPypi, + fetchFromGitHub, libmysqlclient, lib, pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "mariadb"; - version = "1.1.4"; - format = "setuptools"; + version = "1.1.10"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.8"; - src = fetchPypi { - inherit pname version; - hash = "sha256-c6CsvSrOOB7BvPxhztenmlGeZsAsJOEq5tJ7qgNxeHY="; - extension = "zip"; + src = fetchFromGitHub { + owner = "mariadb-corporation"; + repo = "mariadb-connector-python"; + rev = "refs/tags/v${version}"; + hash = "sha256-YpA65J8ozKJfpOc4hZLdgCcT3j/lqRiNeX7k8U/aYkE="; }; - nativeBuildInputs = [ libmysqlclient ]; + build-system = [ setuptools ]; + + nativeBuildInputs = [ + libmysqlclient # for mariadb_config + ]; + + buildInputs = [ libmysqlclient ]; # Requires a running MariaDB instance doCheck = false; pythonImportsCheck = [ "mariadb" ]; - meta = with lib; { + meta = { description = "MariaDB Connector/Python"; homepage = "https://github.com/mariadb-corporation/mariadb-connector-python"; - license = licenses.lgpl21Only; - maintainers = with maintainers; [ vanilla ]; + license = lib.licenses.lgpl21Plus; + maintainers = [ ]; }; }