From 77da99913c9b5a7d8d5ec16321fcfa9945e02a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 2 Feb 2025 11:54:00 -0800 Subject: [PATCH] python313Packages.python-google-drive-api: init at 0.0.2 --- .../python-google-drive-api/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/python-google-drive-api/default.nix diff --git a/pkgs/development/python-modules/python-google-drive-api/default.nix b/pkgs/development/python-modules/python-google-drive-api/default.nix new file mode 100644 index 000000000000..1cb239fb79ba --- /dev/null +++ b/pkgs/development/python-modules/python-google-drive-api/default.nix @@ -0,0 +1,42 @@ +{ + aiohttp, + buildPythonPackage, + fetchFromGitHub, + lib, + mashumaro, + pytestCheckHook, + setuptools, +}: + +buildPythonPackage rec { + pname = "python-google-drive-api"; + version = "0.0.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "tronikos"; + repo = "python-google-drive-api"; + tag = "v${version}"; + hash = "sha256-JvPaMD7UHDqCQCoh1Q8jNFw4R7Jbp2YQDBI3xVp1L1g="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + mashumaro + ]; + + pythonImportsCheck = [ "google_drive_api" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + description = "Python client library for Google Drive API"; + homepage = "https://github.com/tronikos/python-google-drive-api"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fbb6c7877c80..51507d777937 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9502,6 +9502,8 @@ self: super: with self; { python-debian = callPackage ../development/python-modules/python-debian { }; + python-google-drive-api = callPackage ../development/python-modules/python-google-drive-api { }; + python-hcl2 = callPackage ../development/python-modules/python-hcl2 { }; python-lorem = callPackage ../development/python-modules/python-lorem { };