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