emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / kbcstorage / default.nix
blob13c534e8edf7c72e1551e6fe4cdda0b1d13b22f1
2   lib,
3   azure-storage-blob,
4   boto3,
5   buildPythonPackage,
6   fetchFromGitHub,
7   python-dotenv,
8   pythonOlder,
9   requests,
10   responses,
11   setuptools,
12   setuptools-git-versioning,
13   setuptools-scm,
14   urllib3,
15   google-auth,
16   google-cloud-storage,
19 buildPythonPackage rec {
20   pname = "sapi-python-client";
21   version = "0.9.2";
22   pyproject = true;
24   disabled = pythonOlder "3.7";
26   src = fetchFromGitHub {
27     owner = "keboola";
28     repo = "sapi-python-client";
29     tag = version;
30     hash = "sha256-30bAw5pYEUj0jeZWiJxzZ7lDs/+63tlcoLaHrUmYCs8=";
31   };
33   postPatch = ''
34     substituteInPlace pyproject.toml \
35       --replace-fail "urllib3<2.0.0" "urllib3"
36   '';
38   build-system = [
39     setuptools
40     setuptools-git-versioning
41     setuptools-scm
42   ];
44   pythonRelaxDeps = [
45     "google-cloud-storage"
46     "google-auth"
47   ];
49   dependencies = [
50     azure-storage-blob
51     boto3
52     python-dotenv
53     requests
54     responses
55     urllib3
56     google-auth
57     google-cloud-storage
58   ];
60   # Requires API token and an active Keboola bucket
61   # ValueError: Root URL is required.
62   doCheck = false;
64   pythonImportsCheck = [
65     "kbcstorage"
66     "kbcstorage.buckets"
67     "kbcstorage.client"
68     "kbcstorage.tables"
69   ];
71   meta = {
72     description = "Keboola Connection Storage API client";
73     homepage = "https://github.com/keboola/sapi-python-client";
74     changelog = "https://github.com/keboola/sapi-python-client/releases/tag/${version}";
75     license = lib.licenses.mit;
76     maintainers = with lib.maintainers; [ mrmebelman ];
77   };