Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{
|
||
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 can’t 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 = [ ];
|
||
};
|
||
}
|