summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/gcp-storage-emulator/default.nix
blob: 91d4d81042a917ae057e0b8439b8b13dea875427 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  fs,
  google-cloud-storage,
  google-crc32c,
  pytestCheckHook,
  pytest-cov-stub,
  requests,
}:

buildPythonPackage rec {
  pname = "gcp-storage-emulator";
  version = "2024.08.03";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "oittaa";
    repo = "gcp-storage-emulator";
    tag = "v${version}";
    hash = "sha256-Lp9Wvod0wSE2+cnvLXguhagT30ax9TivyR8gC/kB7w0=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    fs
    google-crc32c
  ];

  nativeCheckInputs = [
    google-cloud-storage
    pytest-cov-stub
    pytestCheckHook
    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 ];
    mainProgram = "gcp-storage-emulator";
  };
}