Skip to content

Commit e50b14b

Browse files
authored
python3Packages.rtslib-fb: fix build failures (#437511)
2 parents 4f96e4f + 5618a1e commit e50b14b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkgs/development/python-modules/rtslib-fb/default.nix

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ buildPythonPackage rec {
1616
version = "2.2.3";
1717
pyproject = true;
1818

19-
# TypeError: 'method' object does not support the context manager protocol
20-
postPatch = ''
21-
substituteInPlace rtslib/root.py \
22-
--replace-fail "Path(restore_file).open" "Path(restore_file).open('r')"
23-
'';
24-
2519
src = fetchFromGitHub {
2620
owner = "open-iscsi";
2721
repo = "rtslib-fb";
@@ -38,10 +32,6 @@ buildPythonPackage rec {
3832
pyudev
3933
];
4034

41-
postInstall = ''
42-
install -Dm555 scripts/targetctl -t $out/bin
43-
'';
44-
4535
# No tests
4636
doCheck = false;
4737

0 commit comments

Comments
 (0)