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 # Tests require a token and network access
37 doCheck = false;
38
39 pythonImportsCheck = [ "geocachingapi" ];
40
41 meta = with lib; {
42 description = "Python API to control the Geocaching API";
43 homepage = "https://github.com/Sholofly/geocachingapi-python";
44 changelog = "https://github.com/Sholofly/geocachingapi-python/releases/tag/${version}";
45 license = licenses.mit;
46 maintainers = with maintainers; [ fab ];
47 };
48}