Merge pull request #127531 from fabaff/geocachingapi

python3Packages.geocachingapi: init at 0.1.0
This commit is contained in:
Fabian Affolter 2021-08-02 22:47:23 +02:00 committed by GitHub
commit 178ddcc863
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ lib
, aiohttp
, backoff
, buildPythonPackage
, fetchFromGitHub
, setuptools-scm
, yarl
}:
buildPythonPackage rec {
pname = "geocachingapi";
version = "0.1.0";
src = fetchFromGitHub {
owner = "Sholofly";
repo = "geocachingapi-python";
rev = version;
sha256 = "1vdknsxd7rvw6g5lwxlxj97l9ic8cch8rdki3aczs6xzw5adxhcs";
};
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 ];
};
}

View file

@ -2841,6 +2841,8 @@ in {
geoalchemy2 = callPackage ../development/python-modules/geoalchemy2 { };
geocachingapi = callPackage ../development/python-modules/geocachingapi { };
geographiclib = callPackage ../development/python-modules/geographiclib { };
geoip2 = callPackage ../development/python-modules/geoip2 { };