2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "5.9.9";
|
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}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-LskPz5KXOi7olb3+DUP9uEFESQeo6ec/ZLx9B/w6Ni0=";
|
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; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
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
|
|
|
};
|
|
|
|
}
|