pythonPackages.twisted: 16.4.1 -> 17.1.0

This commit is contained in:
Lancelot SIX 2017-04-26 14:45:04 +02:00
parent d965c8e6e9
commit 528a452043
No known key found for this signature in database
GPG Key ID: 02E1542BA66FB047
2 changed files with 46 additions and 41 deletions

View File

@ -0,0 +1,45 @@
{ stdenv, buildPythonPackage, fetchurl, python,
zope_interface, incremental, automat, constantly
}:
buildPythonPackage rec {
name = "Twisted-${version}";
version = "17.1.0";
src = fetchurl {
url = "mirror://pypi/T/Twisted/${name}.tar.bz2";
sha256 = "1p245mg15hkxp7hy5cyq2fgvlgjkb4cg0gwkwd148nzy1bbi3wnv";
};
propagatedBuildInputs = [ zope_interface incremental automat constantly ];
# Patch t.p._inotify to point to libc. Without this,
# twisted.python.runtime.platform.supportsINotify() == False
patchPhase = stdenv.lib.optionalString stdenv.isLinux ''
substituteInPlace src/twisted/python/_inotify.py --replace \
"ctypes.util.find_library('c')" "'${stdenv.glibc.out}/lib/libc.so.6'"
'';
# Generate Twisted's plug-in cache. Twisted users must do it as well. See
# http://twistedmatrix.com/documents/current/core/howto/plugin.html#auto3
# and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477103 for
# details.
postInstall = "$out/bin/twistd --help > /dev/null";
checkPhase = ''
${python.interpreter} -m unittest discover -s twisted/test
'';
# Tests require network
doCheck = false;
meta = with stdenv.lib; {
homepage = http://twistedmatrix.com/;
description = "Twisted, an event-driven networking engine written in Python";
longDescription = ''
Twisted is an event-driven networking engine written in Python
and licensed under the MIT license.
'';
license = licenses.mit;
maintainers = [ ];
};
}

View File

@ -26035,47 +26035,7 @@ in {
};
};
twisted = buildPythonPackage rec {
name = "Twisted-${version}";
version = "16.4.1";
src = pkgs.fetchurl {
url = "mirror://pypi/T/Twisted/${name}.tar.bz2";
sha256 = "1d8d73f006c990744effb35588359fd44d43608649ac0b6b7edc71176e88e816";
};
propagatedBuildInputs = with self; [ zope_interface ];
# Patch t.p._inotify to point to libc. Without this,
# twisted.python.runtime.platform.supportsINotify() == False
patchPhase = optionalString stdenv.isLinux ''
substituteInPlace twisted/python/_inotify.py --replace \
"ctypes.util.find_library('c')" "'${stdenv.glibc.out}/lib/libc.so.6'"
'';
# Generate Twisted's plug-in cache. Twisted users must do it as well. See
# http://twistedmatrix.com/documents/current/core/howto/plugin.html#auto3
# and http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477103 for
# details.
postInstall = "$out/bin/twistd --help > /dev/null";
checkPhase = ''
${python.interpreter} -m unittest discover -s twisted/test
'';
# Tests require network
doCheck = false;
meta = {
homepage = http://twistedmatrix.com/;
description = "Twisted, an event-driven networking engine written in Python";
longDescription = ''
Twisted is an event-driven networking engine written in Python
and licensed under the MIT license.
'';
license = licenses.mit;
maintainers = [ ];
};
};
twisted = callPackage ../development/python-modules/twisted { };
tzlocal = buildPythonPackage rec {
name = "tzlocal-1.2.2";