summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/storage3/default.nix
blob: d3b761bff64de60d77d8144b55920f1e4675bbd3 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  python-dateutil,
  httpx,
  h2,
  deprecation,
}:

buildPythonPackage rec {
  pname = "storage3";
  version = "0.12.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "supabase";
    repo = "storage-py";
    tag = "v${version}";
    hash = "sha256-Ef309CTnzbaqKAVMdvroUYAy9RImWZZqhsnwRdpGVkk=";
  };

  dependencies = [
    python-dateutil
    httpx
    h2
    deprecation
  ];

  build-system = [ poetry-core ];

  pythonImportsCheck = [ "storage3" ];

  # tests fail due to mock server not starting

  meta = {
    homepage = "https://github.com/supabase/storage-py";
    license = lib.licenses.mit;
    description = "Supabase Storage client for Python.";
    maintainers = with lib.maintainers; [ siegema ];
  };
}