Something went wrong. Try again.
lol
Something went wrong. Try again.
1.4 kB · 85 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586{ stdenv, lib, fetchPypi, buildPythonPackage, isPyPy, python, libev, cffi, cython, greenlet, importlib-metadata, setuptools, zope-event, zope-interface, c-ares, libuv,
# for passthru.tests dulwich, gunicorn, pika,}:
buildPythonPackage rec { pname = "gevent"; version = "25.9.1"; pyproject = true;
src = fetchPypi { inherit pname version; hash = "sha256-rfnNVS3kSk5nVMUf8ueNkZO3+m6rEj25V4ohDmVyNd0="; };
build-system = [ cython setuptools ] ++ lib.optionals (!isPyPy) [ cffi ];
buildInputs = [ libev libuv c-ares ];
dependencies = [ importlib-metadata zope-event zope-interface ] ++ lib.optionals (!isPyPy) [ greenlet ];
env = { GEVENTSETUP_EMBED = "0"; } // lib.optionalAttrs stdenv.cc.isGNU { NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types"; };
# Bunch of failures. doCheck = false;
pythonImportsCheck = [ "gevent" "gevent.events" ];
passthru.tests = { inherit dulwich gunicorn pika ; } // lib.filterAttrs (k: v: lib.hasInfix "gevent" k) python.pkgs;
meta = { description = "Coroutine-based networking library"; homepage = "http://www.gevent.org/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ bjornfor ]; platforms = lib.platforms.unix; };}