Skip to content

Commit a8b0e20

Browse files
python39Packages.twisted: don't overwrite patchPhase, fix path to tests, update homepage ...
... away from their tract
1 parent 54a0c4b commit a8b0e20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkgs/development/python-modules/twisted/default.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ buildPythonPackage rec {
3131

3232
# Patch t.p._inotify to point to libc. Without this,
3333
# twisted.python.runtime.platform.supportsINotify() == False
34-
patchPhase = lib.optionalString stdenv.isLinux ''
34+
postPatch = lib.optionalString stdenv.isLinux ''
3535
substituteInPlace src/twisted/python/_inotify.py --replace \
3636
"ctypes.util.find_library(\"c\")" "'${stdenv.glibc.out}/lib/libc.so.6'"
3737
'';
@@ -45,13 +45,13 @@ buildPythonPackage rec {
4545
'';
4646

4747
checkPhase = ''
48-
${python.interpreter} -m unittest discover -s twisted/test
48+
${python.interpreter} -m unittest discover -s src/twisted/test
4949
'';
5050
# Tests require network
5151
doCheck = false;
5252

5353
meta = with lib; {
54-
homepage = "https://twistedmatrix.com/";
54+
homepage = "https://github.com/twisted/twisted";
5555
description = "Twisted, an event-driven networking engine written in Python";
5656
longDescription = ''
5757
Twisted is an event-driven networking engine written in Python

0 commit comments

Comments
 (0)