2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
2021-08-22 07:53:02 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
2021-08-05 21:33:18 +00:00
|
|
|
, prompt-toolkit
|
2021-08-22 07:53:02 +00:00
|
|
|
, ptable
|
2020-04-24 23:36:52 +00:00
|
|
|
, pygments
|
2021-08-22 07:53:02 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2020-04-24 23:36:52 +00:00
|
|
|
, sphinx
|
|
|
|
, testtools
|
2021-08-22 07:53:02 +00:00
|
|
|
, tkinter
|
|
|
|
, urllib3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-08-22 07:53:02 +00:00
|
|
|
pname = "softlayer";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "5.9.8";
|
2021-08-22 07:53:02 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-08-22 07:53:02 +00:00
|
|
|
owner = pname;
|
|
|
|
repo = "softlayer-python";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "087kyl2yacvh12i4x3357659mgq4xycv8a4y9rl3rj57kp5jc6ah";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
prompt-toolkit
|
|
|
|
ptable
|
|
|
|
pygments
|
|
|
|
requests
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
sphinx
|
|
|
|
testtools
|
|
|
|
tkinter
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "SoftLayer" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2021-08-22 07:53:02 +00:00
|
|
|
description = "Python libraries that assist in calling the SoftLayer API";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/softlayer/softlayer-python";
|
|
|
|
license = licenses.mit;
|
2021-08-22 07:53:02 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|