2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
boto,
|
|
|
|
buildPythonPackage,
|
|
|
|
fasteners,
|
|
|
|
fetchFromGitHub,
|
|
|
|
freezegun,
|
|
|
|
google-reauth,
|
|
|
|
httplib2,
|
|
|
|
oauth2client,
|
|
|
|
pyopenssl,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
retry-decorator,
|
|
|
|
rsa,
|
|
|
|
six,
|
2022-11-27 09:42:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gcs-oauth2-boto-plugin";
|
|
|
|
version = "3.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GoogleCloudPlatform";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-slTxh2j9VhLiSyiTmJIFFakzpzH/+mgilDRxx0VqqKQ=";
|
2022-11-27 09:42:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "rsa==4.7.2" "rsa" \
|
|
|
|
--replace "version='2.7'" "version='${version}'"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
boto
|
|
|
|
freezegun
|
|
|
|
google-reauth
|
|
|
|
httplib2
|
|
|
|
oauth2client
|
|
|
|
pyopenssl
|
2024-01-25 14:12:00 +00:00
|
|
|
retry-decorator
|
2022-11-27 09:42:12 +00:00
|
|
|
rsa
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-11-27 09:42:12 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "gcs_oauth2_boto_plugin" ];
|
2022-11-27 09:42:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Auth plugin allowing use the use of OAuth 2.0 credentials for Google Cloud Storage";
|
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/gcs-oauth2-boto-plugin";
|
|
|
|
changelog = "https://github.com/GoogleCloudPlatform/gcs-oauth2-boto-plugin/releases/tag/v${version}";
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|