1{ 2 lib, 3 aiohttp, 4 backoff, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pythonOlder, 8 reverse-geocode, 9 setuptools-scm, 10 yarl, 11}: 12 13buildPythonPackage rec { 14 pname = "geocachingapi"; 15 version = "0.3.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "Sholofly"; 22 repo = "geocachingapi-python"; 23 tag = version; 24 hash = "sha256-zme1jqn3qtoo39zyj4dKxt9M7gypMqJu0bfgY1iYhjs="; 25 }; 26 27 build-system = [ setuptools-scm ]; 28 29 dependencies = [ 30 aiohttp 31 backoff 32 reverse-geocode 33 yarl 34 ]; 35 36 pythonRelaxDeps = [ "reverse_geocode" ]; 37 38 # Tests require a token and network access 39 doCheck = false; 40 41 pythonImportsCheck = [ "geocachingapi" ]; 42 43 meta = with lib; { 44 description = "Python API to control the Geocaching API"; 45 homepage = "https://github.com/Sholofly/geocachingapi-python"; 46 changelog = "https://github.com/Sholofly/geocachingapi-python/releases/tag/${version}"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}