pythonPackages.google-auth-oauthlib: Cleanups
This commit is contained in:
parent
284f4fd69c
commit
11ef6fdd9c
@ -1,12 +1,9 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pythonOlder
|
|
||||||
, isPy3k
|
|
||||||
, click
|
, click
|
||||||
, mock
|
, mock
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
, futures
|
|
||||||
, google_auth
|
, google_auth
|
||||||
, requests_oauthlib
|
, requests_oauthlib
|
||||||
}:
|
}:
|
||||||
@ -14,31 +11,27 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-auth-oauthlib";
|
pname = "google-auth-oauthlib";
|
||||||
version = "0.4.2";
|
version = "0.4.2";
|
||||||
disabled = pythonOlder "3.6";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "65b65bc39ad8cab15039b35e5898455d3d66296d0584d96fe0e79d67d04c51d9";
|
sha256 = "1nai9k86g7g7w1pxk105dllncgax8nc5hpmk758b3jnqkb1mpdk5";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
|
||||||
click mock pytest
|
|
||||||
] ++ lib.optionals (!isPy3k) [ futures ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
google_auth requests_oauthlib
|
google_auth
|
||||||
|
requests_oauthlib
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = isPy3k;
|
checkInputs = [
|
||||||
checkPhase = ''
|
click
|
||||||
rm -fr tests/__pycache__/ google
|
mock
|
||||||
py.test
|
pytestCheckHook
|
||||||
'';
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Google Authentication Library: oauthlib integration";
|
description = "Google Authentication Library: oauthlib integration";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib";
|
homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ terlar ];
|
maintainers = with maintainers; [ SuperSandro2000 terlar ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user