From a97c7338eef8822c7bfb426e89b0393caeb925d9 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 22 Jan 2025 21:40:28 +0100 Subject: [PATCH] python312Packages.gcp-storage-emulator: init at 2024.08.03 --- .../gcp-storage-emulator/default.nix | 55 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 57 insertions(+) create mode 100644 pkgs/development/python-modules/gcp-storage-emulator/default.nix diff --git a/pkgs/development/python-modules/gcp-storage-emulator/default.nix b/pkgs/development/python-modules/gcp-storage-emulator/default.nix new file mode 100644 index 000000000000..ab67535edb8f --- /dev/null +++ b/pkgs/development/python-modules/gcp-storage-emulator/default.nix @@ -0,0 +1,55 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + wheel, + flake8, + fs, + google-cloud-storage, + google-crc32c, + pytest, + pytestCheckHook, + pytest-cov, + requests, +}: + +buildPythonPackage rec { + pname = "gcp-storage-emulator"; + version = "2024.08.03"; + pyproject = true; + + src = fetchFromGitHub { + owner = "oittaa"; + repo = "gcp-storage-emulator"; + rev = "v${version}"; + hash = "sha256-Lp9Wvod0wSE2+cnvLXguhagT30ax9TivyR8gC/kB7w0="; + }; + + build-system = [ + setuptools + wheel + ]; + + nativeCheckInputs = [ + flake8 + fs + google-cloud-storage + google-crc32c + pytest + pytestCheckHook + pytest-cov + requests + ]; + + pythonImportsCheck = [ + "gcp_storage_emulator" + ]; + + meta = { + description = "Local emulator for Google Cloud Storage"; + homepage = "https://github.com/oittaa/gcp-storage-emulator"; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ drupol ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index aac99f5adafc..a7c82f7c4e0d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5083,6 +5083,8 @@ self: super: with self; { gcovr = callPackage ../development/python-modules/gcovr { }; + gcp-storage-emulator = callPackage ../development/python-modules/gcp-storage-emulator { }; + gcsa = callPackage ../development/python-modules/gcsa { }; gcsfs = callPackage ../development/python-modules/gcsfs { };