81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
55 lines
945 B
Nix
55 lines
945 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchFromGitHub
|
|
, mock
|
|
, prompt-toolkit
|
|
, ptable
|
|
, pygments
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, sphinx
|
|
, testtools
|
|
, tkinter
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "softlayer";
|
|
version = "5.9.9";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = "softlayer-python";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-LskPz5KXOi7olb3+DUP9uEFESQeo6ec/ZLx9B/w6Ni0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
prompt-toolkit
|
|
ptable
|
|
pygments
|
|
requests
|
|
urllib3
|
|
];
|
|
|
|
checkInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
sphinx
|
|
testtools
|
|
tkinter
|
|
];
|
|
|
|
pythonImportsCheck = [ "SoftLayer" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python libraries that assist in calling the SoftLayer API";
|
|
homepage = "https://github.com/softlayer/softlayer-python";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|