python310Packages.softlayer: 5.9.9 -> 6.1.0
This commit is contained in:
parent
42100e31bf
commit
d921864be3
1 changed files with 25 additions and 4 deletions
|
@ -14,20 +14,28 @@
|
|||
, testtools
|
||||
, tkinter
|
||||
, urllib3
|
||||
, prettytable
|
||||
, rich
|
||||
, zeep
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "softlayer";
|
||||
version = "5.9.9";
|
||||
version = "6.1.0";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = "softlayer-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-LskPz5KXOi7olb3+DUP9uEFESQeo6ec/ZLx9B/w6Ni0=";
|
||||
sha256 = "sha256-T49KVAsgcAZySkaJi47IrFcMHGZvEkGDjPWsdMarzwM=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace 'rich == 12.3.0' 'rich >= 12.3.0'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
prompt-toolkit
|
||||
|
@ -35,6 +43,8 @@ buildPythonPackage rec {
|
|||
pygments
|
||||
requests
|
||||
urllib3
|
||||
prettytable
|
||||
rich
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
|
@ -43,15 +53,26 @@ buildPythonPackage rec {
|
|||
sphinx
|
||||
testtools
|
||||
tkinter
|
||||
zeep
|
||||
];
|
||||
|
||||
# Otherwise soap_tests.py will fail to create directory
|
||||
# Permission denied: '/homeless-shelter'
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
# Test fails with ConnectionError trying to connect to api.softlayer.com
|
||||
"tests/transports/soap_tests.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "SoftLayer" ];
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
||||
description = "Python libraries that assist in calling the SoftLayer API";
|
||||
homepage = "https://github.com/softlayer/softlayer-python";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
maintainers = with maintainers; [ onny ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue