ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / geocachingapi / default.nix
blobdf537283efcef5568efdfd48628ff3e74d12d07b
1 { lib
2 , aiohttp
3 , backoff
4 , buildPythonPackage
5 , fetchFromGitHub
6 , pythonOlder
7 , setuptools-scm
8 , yarl
9 }:
11 buildPythonPackage rec {
12   pname = "geocachingapi";
13   version = "0.2.3";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "Sholofly";
20     repo = "geocachingapi-python";
21     rev = "refs/tags/${version}";
22     sha256 = "sha256-C4nj4KFEwsY5V5f0Q1x+9sD8Ihz5m7b3jg2pOyB/pDg=";
23   };
25   nativeBuildInputs = [
26     setuptools-scm
27   ];
29   SETUPTOOLS_SCM_PRETEND_VERSION = version;
31   propagatedBuildInputs = [
32     aiohttp
33     backoff
34     yarl
35   ];
37   # Tests require a token and network access
38   doCheck = false;
40   pythonImportsCheck = [
41     "geocachingapi"
42   ];
44   meta = with lib; {
45     description = "Python API to control the Geocaching API";
46     homepage = "https://github.com/Sholofly/geocachingapi-python";
47     license = with licenses; [ mit ];
48     maintainers = with maintainers; [ fab ];
49   };