about summary refs log tree commit diff
path: root/pkgs/development/python-modules/qds-sdk/default.nix
blob: d4fb7a5031449cfe615471c4e325a50633fa86f2 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, boto
, inflection
, requests
, six
, urllib3
, mock
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "qds-sdk";
  version = "1.16.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "qubole";
    repo = "qds-sdk-py";
    rev = "refs/tags/V${version}";
    hash = "sha256-8aPIE2E3Fy2EiBM2FPRyjnJolIBdOzafI3Fvlod5hxU=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    boto
    inflection
    requests
    six
    urllib3
  ];

  nativeCheckInputs = [ pytestCheckHook mock ];

  pythonImportsCheck = [
    "qds_sdk"
  ];

  meta = with lib; {
    description = "A Python module that provides the tools you need to authenticate with, and use the Qubole Data Service API";
    homepage = "https://github.com/qubole/qds-sdk-py";
    license = licenses.asl20;
    maintainers = with maintainers; [ shahrukh330 ];
    mainProgram = "qds.py";
  };
}