depot/third_party/nixpkgs/pkgs/development/python-modules/geocachingapi/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

44 lines
857 B
Nix

{ 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 ];
};
}