summary refs log tree commit diff
path: root/pkgs/development/python-modules/softlayer/default.nix
blob: e5a55cc9bb1b9c2ffee6533cac54db45ee7e8227 (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
52
53
54
55
{ lib
, buildPythonPackage
, click
, fetchFromGitHub
, mock
, prompt-toolkit
, ptable
, pygments
, pytestCheckHook
, pythonOlder
, requests
, sphinx
, testtools
, tkinter
, urllib3
}:

buildPythonPackage rec {
  pname = "softlayer";
  version = "5.9.9";
  disabled = pythonOlder "3.5";

  src = fetchFromGitHub {
    owner = pname;
    repo = "softlayer-python";
    rev = "v${version}";
    sha256 = "sha256-LskPz5KXOi7olb3+DUP9uEFESQeo6ec/ZLx9B/w6Ni0=";
  };

  propagatedBuildInputs = [
    click
    prompt-toolkit
    ptable
    pygments
    requests
    urllib3
  ];

  checkInputs = [
    mock
    pytestCheckHook
    sphinx
    testtools
    tkinter
  ];

  pythonImportsCheck = [ "SoftLayer" ];

  meta = with lib; {
    description = "Python libraries that assist in calling the SoftLayer API";
    homepage = "https://github.com/softlayer/softlayer-python";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}