python3Packages.rtslib-fb: fix build failures

foxgirl.engineering 5618a1e4 b2b1f8e7

verified
Changed files
-10
pkgs
development
python-modules
rtslib-fb
-10
pkgs/development/python-modules/rtslib-fb/default.nix
···
version = "2.2.3";
pyproject = true;
-
# TypeError: 'method' object does not support the context manager protocol
-
postPatch = ''
-
substituteInPlace rtslib/root.py \
-
--replace-fail "Path(restore_file).open" "Path(restore_file).open('r')"
-
'';
-
src = fetchFromGitHub {
owner = "open-iscsi";
repo = "rtslib-fb";
···
dependencies = [
pyudev
];
-
-
postInstall = ''
-
install -Dm555 scripts/targetctl -t $out/bin
-
'';
# No tests
doCheck = false;
···
version = "2.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "open-iscsi";
repo = "rtslib-fb";
···
dependencies = [
pyudev
];
# No tests
doCheck = false;