2020-01-15 13:28:36 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2020-05-04 18:55:41 +01:00
|
|
|
, isPy27
|
2020-01-15 13:28:36 +00:00
|
|
|
, ptable
|
|
|
|
, click
|
|
|
|
, requests
|
|
|
|
, prompt_toolkit
|
|
|
|
, pygments
|
|
|
|
, urllib3
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, mock
|
|
|
|
, sphinx
|
|
|
|
, testtools
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "softlayer-python";
|
|
|
|
version = "5.8.4";
|
2020-05-04 18:55:41 +01:00
|
|
|
disabled = isPy27;
|
2020-01-15 13:28:36 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ ptable click requests prompt_toolkit pygments urllib3 ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytestcov 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.";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/softlayer/softlayer-python";
|
2020-01-15 13:28:36 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|