depot/third_party/nixpkgs/pkgs/development/python-modules/gevent/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

55 lines
897 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, isPyPy
, python
, libev
, greenlet
, setuptools
, zope_event
, zope_interface
, pythonOlder
}:
buildPythonPackage rec {
pname = "gevent";
version = "22.10.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-HKAdoXbuN7NSeicC99QNvJ/7jPx75aA7+k+e7EXlXEY=";
};
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;
};
}