Files
nixpkgs/pkgs/development/python-modules/maxminddb/default.nix
Martin Weinelt 366aa8382b python3Packages.maxminddb: 2.6.3 -> 2.8.2
https://github.com/maxmind/MaxMind-DB-Reader-python/blob/v2.8.2/HISTORY.rst

This commit was automatically generated using update-python-libraries.
2025-08-09 19:01:43 +02:00

41 lines
1.0 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
libmaxminddb,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "maxminddb";
version = "2.8.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-JqjlNiKNjMKMW49XSlcaJwS+/OOzaM7KWTp21WtlkPk=";
};
buildInputs = [ libmaxminddb ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "maxminddb" ];
# The multiprocessing tests fail on Darwin because multiprocessing uses spawn instead of fork,
# resulting in an exception when it cant pickle the `lookup` local function.
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "multiprocessing" ];
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 = [ ];
};
}