python312Packages.geopy: fix build

This commit is contained in:
Martin Weinelt 2023-12-06 17:18:53 +01:00
parent 10590daa39
commit d357bc5303
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,10 +1,10 @@
{ lib
, async-generator
, buildPythonPackage
, docutils
, fetchFromGitHub
, geographiclib
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, pytz
}:
@ -27,7 +27,6 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
async-generator
docutils
pytestCheckHook
pytz
@ -38,6 +37,10 @@ buildPythonPackage rec {
"test_user_agent_default"
];
disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [
"test/test_init.py"
];
pytestFlagsArray = [ "--skip-tests-requiring-internet" ];
pythonImportsCheck = [ "geopy" ];