Merge pull request #241942 from fabaff/maxminddb-bump

python311Packages.maxminddb: 2.3.0 -> 2.4.0
This commit is contained in:
Fabian Affolter
2023-07-14 09:07:59 +02:00
committed by GitHub
@@ -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; [ ];
};