Skip to content

Commit

Permalink
Merge pull request #165414 from SuperSandro2000/twisted
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Mar 27, 2022
2 parents 46d576a + a8b0e20 commit efd297a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/development/python-modules/twisted/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ buildPythonPackage rec {

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

checkPhase = ''
${python.interpreter} -m unittest discover -s twisted/test
${python.interpreter} -m unittest discover -s src/twisted/test
'';
# Tests require network
doCheck = false;

meta = with lib; {
homepage = "https://twistedmatrix.com/";
homepage = "https://github.com/twisted/twisted";
description = "Twisted, an event-driven networking engine written in Python";
longDescription = ''
Twisted is an event-driven networking engine written in Python
Expand Down

0 comments on commit efd297a

Please sign in to comment.