nixpkgs/pkgs/development/python-modules/google-auth-oauthlib/default.nix

42 lines
813 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, click
, mock
, pytest
, futures
, google_auth
, requests_oauthlib
}:
buildPythonPackage rec {
pname = "google-auth-oauthlib";
version = "0.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "03rq2rjac0zh16vsw0q914sp62l9f8fp033wn3191pqd2cchqix0";
};
checkInputs = [
click mock pytest
] ++ lib.optionals (!isPy3k) [ futures ];
propagatedBuildInputs = [
google_auth requests_oauthlib
];
checkPhase = ''
rm -fr tests/__pycache__/
py.test
'';
meta = with lib; {
description = "Google Authentication Library: oauthlib integration";
homepage = https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib;
license = licenses.asl20;
maintainers = with maintainers; [ terlar ];
};
}