Skip to content

Commit eb0f354

Browse files
hertrstepkr4711
authored andcommitted
XXX: some custom patch to make stuff work
Signed-off-by: Stefan Kober <stefan.kober@cyberus-technology.de> On-behalf-of: SAP stefan.kober@sap.com
1 parent 7721700 commit eb0f354

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

flake.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@
2727
(_final: prev: {
2828
python3 = prev.python3.override {
2929
packageOverrides = _: pyPrev: {
30+
osc-lib = pyPrev.osc-lib.overridePythonAttrs (old: {
31+
postPatch = (old.postPatch or "") + ''
32+
substituteInPlace osc_lib/clientmanager.py \
33+
--replace-fail \
34+
"def is_service_available(self, service_type: str) -> bool | None:" \
35+
"def is_service_available(self, service_type: str, *args, **kwargs) -> bool | None:"
36+
'';
37+
});
3038
pysaml2 = pyPrev.pysaml2.overridePythonAttrs (_old: {
3139
doCheck = false;
3240
});

packages/osc-lib.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ python3Packages.buildPythonPackage rec {
5151
stestr
5252
];
5353

54+
postPatch = ''
55+
substituteInPlace osc_lib/clientmanager.py \
56+
--replace-fail \
57+
"def is_service_available(self, service_type):" \
58+
"def is_service_available(self, service_type, *args, **kwargs):"
59+
'';
60+
5461
checkPhase = ''
5562
# tests parse cli output which slightly changed
5663
stestr run -e <(echo "

0 commit comments

Comments
 (0)