My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/geocachingapi/default.nix

50 lines
949 B

{ lib
, aiohttp
, backoff
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools-scm
, yarl
}:
buildPythonPackage rec {
pname = "geocachingapi";
version = "0.2.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Sholofly";
repo = "geocachingapi-python";
rev = "refs/tags/${version}";
sha256 = "sha256-EoAY3kUFCxQY2Dodwl0TWye5MTjjHvbna5AHha1UzCc=";
};
nativeBuildInputs = [
setuptools-scm
];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
propagatedBuildInputs = [
aiohttp
backoff
yarl
];
# Tests require a token and network access
doCheck = false;
pythonImportsCheck = [
"geocachingapi"
];
meta = with lib; {
description = "Python API to control the Geocaching API";
homepage = "https://github.com/Sholofly/geocachingapi-python";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}