Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / softlayer / default.nix
blob3c2a5e2a356d94935bad932af71a191b7a324fde
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , isPy27
5 , ptable
6 , click
7 , requests
8 , prompt_toolkit
9 , pygments
10 , urllib3
11 , pytest
12 , pytestcov
13 , mock
14 , sphinx
15 , testtools
18 buildPythonPackage rec {
19   pname = "softlayer-python";
20   version = "5.8.4";
21   disabled = isPy27;
23   propagatedBuildInputs = [ ptable click requests prompt_toolkit pygments urllib3 ];
25   checkInputs = [ pytest pytestcov mock sphinx testtools ptable click requests prompt_toolkit pygments urllib3 ];
27   checkPhase = ''
28     pytest
29   '';
31   src = fetchFromGitHub {
32     owner = "softlayer";
33     repo = pname;
34     rev = "v${version}";
35     sha256 = "10kzi7kvvifr21a46q2xqsibs0bx5ys22nfym0bg605ka37vcz88";
36   };
38   meta = with lib; {
39     description = "A set of Python libraries that assist in calling the SoftLayer API.";
40     homepage = "https://github.com/softlayer/softlayer-python";
41     license = licenses.mit;
42   };