ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / kbcstorage / default.nix
blobd84ee1994b5b84f99cd1324055f0897b01d88e19
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
5 # build
6 , setuptools-scm
8 # propagates
9 , azure-storage-blob
10 , boto3
11 , requests
13 # tests
14 , responses
15 , unittestCheckHook
18 buildPythonPackage rec {
19     pname = "sapi-python-client";
20     version = "0.4.1";
21     format = "setuptools";
23     src = fetchFromGitHub {
24       owner = "keboola";
25       repo = pname;
26       rev  = version;
27       sha256 = "189dzj06vzp7366h2qsfvbjmw9qgl7jbp8syhynn9yvrjqp4k8h3";
28     };
30     SETUPTOOLS_SCM_PRETEND_VERSION = version;
32     nativeBuildInputs = [
33       setuptools-scm
34     ];
36     propagatedBuildInputs = [
37       azure-storage-blob
38       boto3
39       requests
40     ];
42     # requires API token and an active keboola bucket
43     # ValueError: Root URL is required.
44     doCheck = false;
46     checkInputs = [
47       unittestCheckHook
48       responses
49     ];
51     pythonImportsCheck = [
52       "kbcstorage"
53       "kbcstorage.buckets"
54       "kbcstorage.client"
55       "kbcstorage.tables"
56     ];
58     meta = with lib; {
59       description = "Keboola Connection Storage API client";
60       homepage = "https://github.com/keboola/sapi-python-client";
61       maintainers = with maintainers; [ mrmebelman ];
62       license = licenses.mit;
63     };