Files
nixpkgs/pkgs/development/python-modules/geocachingapi/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1.3 KiB
Nix

{
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 ];
};
}