From f8db5a813ce14a94544012471445861c2841eb16 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 6 Jul 2023 16:37:05 +0200 Subject: [PATCH] python311Packages.maxminddb: 2.3.0 -> 2.4.0 Changelog: https://github.com/maxmind/MaxMind-DB-Reader-python/blob/v2.4.0/HISTORY.rst --- .../python-modules/maxminddb/default.nix | 32 +++++++++++-------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/maxminddb/default.nix b/pkgs/development/python-modules/maxminddb/default.nix index b9ff8bf437bb..90acdef2d363 100644 --- a/pkgs/development/python-modules/maxminddb/default.nix +++ b/pkgs/development/python-modules/maxminddb/default.nix @@ -1,34 +1,40 @@ -{ stdenv -, lib +{ lib +, stdenv , buildPythonPackage -, pythonOlder -, pythonAtLeast , fetchPypi , libmaxminddb -, mock -, nose +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "maxminddb"; - version = "2.3.0"; - disabled = pythonOlder "3.6"; + version = "2.4.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-Egkg3d2VXzKuSMIHxs72/V3Ih0qIm6lLDywfc27N8wg="; + hash = "sha256-geVOU0CL1QJlDllpzLoWeAr2WewdscRLLJl+QzCl7ZY="; }; - buildInputs = [ libmaxminddb ]; + buildInputs = [ + libmaxminddb + ]; - nativeCheckInputs = [ nose mock ]; + nativeCheckInputs = [ + pytestCheckHook + ]; - # Tests are broken for macOS on python38 - doCheck = !(stdenv.isDarwin && pythonAtLeast "3.8"); + pythonImportsCheck = [ + "maxminddb" + ]; meta = with lib; { 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"; license = licenses.asl20; maintainers = with maintainers; [ ]; };