aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/gevent/default.nix
blob: bf066f5190656845c8303a895aa90268aed48c3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv, fetchPypi, buildPythonPackage, isPyPy, python, libev, greenlet
, zope_interface
}:

buildPythonPackage rec {
  pname = "gevent";
  version = "20.9.0";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    sha256 = "13aw9x6imsy3b369kfjblqiwfni69pp32m4r13n62r9k3l2lhvaz";
  };

  buildInputs = [ libev ];
  propagatedBuildInputs = [
    zope_interface
  ] ++ stdenv.lib.optionals (!isPyPy) [ greenlet ];

  checkPhase = ''
    cd greentest
    ${python.interpreter} testrunner.py
  '';

  # Bunch of failures.
  doCheck = false;

  meta = with stdenv.lib; {
    description = "Coroutine-based networking library";
    homepage = "http://www.gevent.org/";
    license = licenses.mit;
    platforms = platforms.unix;
    maintainers = with maintainers; [ bjornfor ];
  };
}