pythonPackages.gevent: 1.1.2 -> 1.2.2

This commit is contained in:
adisbladis 2017-11-20 20:52:29 +08:00 committed by Frederik Rietdijk
parent 6a3b92626e
commit 879f23ea1b

View File

@ -1,20 +1,13 @@
{ stdenv, fetchurl, buildPythonPackage, isPyPy, python, libev, greenlet }: { stdenv, fetchurl, buildPythonPackage, isPyPy, python, libev, greenlet }:
buildPythonPackage rec { buildPythonPackage rec {
name = "gevent-1.1.2"; name = "gevent-1.2.2";
src = fetchurl { src = fetchurl {
url = "mirror://pypi/g/gevent/${name}.tar.gz"; url = "mirror://pypi/g/gevent/${name}.tar.gz";
sha256 = "cb15cf73d69a2eeefed330858f09634e2c50bf46da9f9e7635730fcfb872c02c"; sha256 = "0bbbjvi423y9k9xagrcsimnayaqymg6f2dj76m9z3mjpkjpci4a7";
}; };
# Why do we have this patch?
postPatch = ''
substituteInPlace libev/ev.c --replace \
"ecb_inline void ecb_unreachable (void) ecb_noreturn" \
"ecb_inline ecb_noreturn void ecb_unreachable (void)"
'';
buildInputs = [ libev ]; buildInputs = [ libev ];
propagatedBuildInputs = stdenv.lib.optionals (!isPyPy) [ greenlet ]; propagatedBuildInputs = stdenv.lib.optionals (!isPyPy) [ greenlet ];