summary refs log tree commit diff
path: root/pkgs/development/python-modules/softlayer/default.nix
blob: 78ecb3face301a3a09244cfcda700adab5988b47 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, ptable
, click
, requests
, prompt_toolkit
, pygments
, urllib3
, pytest
, pytest-cov
, mock
, sphinx
, testtools
}:

buildPythonPackage rec {
  pname = "softlayer-python";
  version = "5.8.4";
  disabled = isPy27;

  propagatedBuildInputs = [ ptable click requests prompt_toolkit pygments urllib3 ];

  checkInputs = [ pytest pytest-cov mock sphinx testtools ptable click requests prompt_toolkit pygments urllib3 ];

  checkPhase = ''
    pytest
  '';

  src = fetchFromGitHub {
    owner = "softlayer";
    repo = pname;
    rev = "v${version}";
    sha256 = "10kzi7kvvifr21a46q2xqsibs0bx5ys22nfym0bg605ka37vcz88";
  };

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