nixpkgs/pkgs/development/python-modules/gipc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, gevent
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "gipc";
2022-02-09 08:02:08 +00:00
version = "1.4.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "jgehrcke";
repo = "gipc";
rev = "refs/tags/${version}";
hash = "sha256-T5TqLanODyzJGyjDZz+75bbz3THxoobYnfJFQxAB76E=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "gevent>=1.5,<=21.12.0" "gevent>=1.5"
'';
propagatedBuildInputs = [
gevent
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "gevent-cooperative child processes and IPC";
longDescription = ''
Usage of Python's multiprocessing package in a gevent-powered
application may raise problems and most likely breaks the application
in various subtle ways. gipc (pronunciation "gipsy") is developed with
the motivation to solve many of these issues transparently. With gipc,
multiprocessing. Process-based child processes can safely be created
anywhere within your gevent-powered application.
'';
homepage = "http://gehrcke.de/gipc";
license = licenses.mit;
};
}