at 23.11-beta 1.1 kB view raw
1{ lib 2, async-generator 3, buildPythonPackage 4, docutils 5, fetchFromGitHub 6, geographiclib 7, pytestCheckHook 8, pythonOlder 9, pytz 10}: 11 12buildPythonPackage rec { 13 pname = "geopy"; 14 version = "2.4.0"; 15 format = "setuptools"; 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = pname; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-3Sq76DcnoG0Uv/KPF/B3oep0MO96vemKiANjgR7/k/I="; 23 }; 24 25 propagatedBuildInputs = [ 26 geographiclib 27 ]; 28 29 nativeCheckInputs = [ 30 async-generator 31 docutils 32 pytestCheckHook 33 pytz 34 ]; 35 36 disabledTests = [ 37 # ignore --skip-tests-requiring-internet flag 38 "test_user_agent_default" 39 ]; 40 41 pytestFlagsArray = [ "--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; [ GuillaumeDesforges ]; 53 }; 54}