From 475a60b7d5cebc39267b730291da91c8c38ec9fe Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 24 Aug 2026 12:52:16 +0200 Subject: [PATCH] python3Packages.maxminddb: 3.0.0 -> 3.1.1 Changelog: https://github.com/maxmind/MaxMind-DB-Reader-python/blob/v3.1.1/HISTORY.rst --- .../python-modules/maxminddb/default.nix | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/maxminddb/default.nix b/pkgs/development/python-modules/maxminddb/default.nix index 2e3e5d65e041..f0caf133c487 100644 --- a/pkgs/development/python-modules/maxminddb/default.nix +++ b/pkgs/development/python-modules/maxminddb/default.nix @@ -5,18 +5,25 @@ fetchPypi, libmaxminddb, pytestCheckHook, + setuptools-scm, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "maxminddb"; - version = "3.0.0"; - format = "setuptools"; + version = "3.1.1"; + pyproject = true; src = fetchPypi { - inherit pname version; - hash = "sha256-l5KxliWUXf8Ubi4xh/nkcLgjMKkS986lWBuL1a8w2os="; + inherit (finalAttrs) pname version; + hash = "sha256-sZqTjEgVGPGaLFNP/cs7xZWC8Pu9z5+BrJrfkSoK9oY="; }; + build-system = [ + setuptools + setuptools-scm + ]; + buildInputs = [ libmaxminddb ]; nativeCheckInputs = [ pytestCheckHook ]; @@ -30,8 +37,8 @@ buildPythonPackage rec { meta = { description = "Reader for the MaxMind DB format"; homepage = "https://github.com/maxmind/MaxMind-DB-Reader-python"; - changelog = "https://github.com/maxmind/MaxMind-DB-Reader-python/blob/v${version}/HISTORY.rst"; + changelog = "https://github.com/maxmind/MaxMind-DB-Reader-python/blob/v${finalAttrs.version}/HISTORY.rst"; license = lib.licenses.asl20; maintainers = [ ]; }; -} +})