Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 backoff, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pythonOlder, 8 setuptools-scm, 9 yarl, 10}: 11 12buildPythonPackage rec { 13 pname = "geocachingapi"; 14 version = "0.2.3"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "Sholofly"; 21 repo = "geocachingapi-python"; 22 rev = "refs/tags/${version}"; 23 hash = "sha256-C4nj4KFEwsY5V5f0Q1x+9sD8Ihz5m7b3jg2pOyB/pDg="; 24 }; 25 26 nativeBuildInputs = [ setuptools-scm ]; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 backoff 31 yarl 32 ]; 33 34 # Tests require a token and network access 35 doCheck = false; 36 37 pythonImportsCheck = [ "geocachingapi" ]; 38 39 meta = with lib; { 40 description = "Python API to control the Geocaching API"; 41 homepage = "https://github.com/Sholofly/geocachingapi-python"; 42 license = with licenses; [ mit ]; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}