1{ lib 2, aiohttp 3, backoff 4, buildPythonPackage 5, fetchFromGitHub 6, setuptools-scm 7, yarl 8}: 9 10buildPythonPackage rec { 11 pname = "geocachingapi"; 12 version = "0.1.0"; 13 14 src = fetchFromGitHub { 15 owner = "Sholofly"; 16 repo = "geocachingapi-python"; 17 rev = version; 18 sha256 = "1vdknsxd7rvw6g5lwxlxj97l9ic8cch8rdki3aczs6xzw5adxhcs"; 19 }; 20 21 nativeBuildInputs = [ 22 setuptools-scm 23 ]; 24 25 SETUPTOOLS_SCM_PRETEND_VERSION = version; 26 27 propagatedBuildInputs = [ 28 aiohttp 29 backoff 30 yarl 31 ]; 32 33 # Tests require a token and network access 34 doCheck = false; 35 36 pythonImportsCheck = [ "geocachingapi" ]; 37 38 meta = with lib; { 39 description = "Python API to control the Geocaching API"; 40 homepage = "https://github.com/Sholofly/geocachingapi-python"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}