at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 docutils, 5 fetchFromGitHub, 6 geographiclib, 7 pytest7CheckHook, 8 pythonAtLeast, 9 pythonOlder, 10 pytz, 11}: 12 13buildPythonPackage rec { 14 pname = "geopy"; 15 version = "2.4.1"; 16 format = "setuptools"; 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "geopy"; 21 repo = "geopy"; 22 tag = version; 23 hash = "sha256-mlOXDEtYry1IUAZWrP2FuY/CGliUnCPYLULnLNN0n4Y="; 24 }; 25 26 propagatedBuildInputs = [ geographiclib ]; 27 28 nativeCheckInputs = [ 29 docutils 30 pytest7CheckHook 31 pytz 32 ]; 33 34 disabledTests = [ 35 # ignore --skip-tests-requiring-internet flag 36 "test_user_agent_default" 37 ]; 38 39 disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [ "test/test_init.py" ]; 40 41 pytestFlags = [ "--skip-tests-requiring-internet" ]; 42 43 pythonImportsCheck = [ "geopy" ]; 44 45 __darwinAllowLocalNetworking = true; 46 47 meta = with lib; { 48 homepage = "https://github.com/geopy/geopy"; 49 description = "Python Geocoding Toolbox"; 50 changelog = "https://github.com/geopy/geopy/releases/tag/${version}"; 51 license = with licenses; [ mit ]; 52 maintainers = with maintainers; [ ]; 53 }; 54}