Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / gcs-oauth2-boto-plugin / default.nix
blob85e18fb12499a22c796320137bfa7f18a7e7c04f
1 { lib
2 , boto
3 , buildPythonPackage
4 , fasteners
5 , fetchFromGitHub
6 , freezegun
7 , google-reauth
8 , httplib2
9 , oauth2client
10 , pyopenssl
11 , pytestCheckHook
12 , pythonOlder
13 , pythonRelaxDepsHook
14 , retry-decorator
15 , rsa
16 , six
19 buildPythonPackage rec {
20   pname = "gcs-oauth2-boto-plugin";
21   version = "3.0";
22   format = "setuptools";
24   disabled = pythonOlder "3.7";
26   src = fetchFromGitHub {
27     owner = "GoogleCloudPlatform";
28     repo = pname;
29     rev = "refs/tags/v${version}";
30     hash = "sha256-slTxh2j9VhLiSyiTmJIFFakzpzH/+mgilDRxx0VqqKQ=";
31   };
33   postPatch = ''
34     substituteInPlace setup.py \
35       --replace "rsa==4.7.2" "rsa" \
36       --replace "version='2.7'" "version='${version}'"
37   '';
39   propagatedBuildInputs = [
40     boto
41     freezegun
42     google-reauth
43     httplib2
44     oauth2client
45     pyopenssl
46     retry-decorator
47     rsa
48     six
49   ];
51   nativeCheckInputs = [
52     pytestCheckHook
53   ];
55   pythonImportsCheck = [
56     "gcs_oauth2_boto_plugin"
57   ];
59   meta = with lib; {
60     description = "Auth plugin allowing use the use of OAuth 2.0 credentials for Google Cloud Storage";
61     homepage = "https://github.com/GoogleCloudPlatform/gcs-oauth2-boto-plugin";
62     changelog = "https://github.com/GoogleCloudPlatform/gcs-oauth2-boto-plugin/releases/tag/v${version}";
63     license = with licenses; [ asl20 ];
64     maintainers = with maintainers; [ fab ];
65   };