python311Packages.softlayer: update postPatch

This commit is contained in:
Fabian Affolter
2023-01-21 17:25:04 -08:00
committed by Robert Schütz
parent 460e16d242
commit fe2df4be99
@@ -1,50 +1,52 @@
{ stdenv
, lib
{ lib
, stdenv
, buildPythonPackage
, click
, fetchFromGitHub
, mock
, prettytable
, prompt-toolkit
, ptable
, pygments
, pytestCheckHook
, pythonOlder
, requests
, rich
, sphinx
, testtools
, tkinter
, urllib3
, prettytable
, rich
, zeep
}:
buildPythonPackage rec {
pname = "softlayer";
version = "6.1.3";
disabled = pythonOlder "3.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = pname;
repo = "softlayer-python";
rev = "refs/tags/v${version}";
sha256 = "sha256-msNW0PeDbs5iq77FBPKKWH0js/PAQz6xfbM0ycMVg5U=";
hash = "sha256-msNW0PeDbs5iq77FBPKKWH0js/PAQz6xfbM0ycMVg5U=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'rich == 12.3.0' 'rich >= 12.3.0'
--replace "rich ==" "rich >="
'';
propagatedBuildInputs = [
click
prettytable
prompt-toolkit
ptable
pygments
requests
urllib3
prettytable
rich
urllib3
];
nativeCheckInputs = [
@@ -64,14 +66,17 @@ buildPythonPackage rec {
disabledTestPaths = [
# Test fails with ConnectionError trying to connect to api.softlayer.com
"tests/transports/soap_tests.py"
"tests/transports/soap_tests.py.unstable"
];
pythonImportsCheck = [ "SoftLayer" ];
pythonImportsCheck = [
"SoftLayer"
];
meta = with lib; {
description = "Python libraries that assist in calling the SoftLayer API";
homepage = "https://github.com/softlayer/softlayer-python";
changelog = "https://github.com/softlayer/softlayer-python/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ onny ];
};