depot/third_party/nixpkgs/pkgs/development/python-modules/gevent/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

55 lines
897 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, isPyPy
, python
, libev
, greenlet
, setuptools
, zope_event
, zope_interface
, pythonOlder
}:
buildPythonPackage rec {
pname = "gevent";
version = "21.12.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-9ItkV4w2e5H6eTv46qr0mVy5PIvEWGDkc7+GgHCtCU4=";
};
nativeBuildInputs = [
setuptools
];
buildInputs = [
libev
];
propagatedBuildInputs = [
zope_event
zope_interface
] ++ lib.optionals (!isPyPy) [
greenlet
];
# Bunch of failures.
doCheck = false;
pythonImportsCheck = [
"gevent"
];
meta = with lib; {
description = "Coroutine-based networking library";
homepage = "http://www.gevent.org/";
license = licenses.mit;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.unix;
};
}