2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 20:32:16 +00:00
|
|
|
, buildPythonPackage
|
2023-01-04 01:24:36 +00:00
|
|
|
, fetchFromGitHub
|
2018-10-16 20:32:16 +00:00
|
|
|
, gevent
|
2023-01-04 01:24:36 +00:00
|
|
|
, pytestCheckHook
|
2018-10-16 20:32:16 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gipc";
|
2022-02-09 08:02:08 +00:00
|
|
|
version = "1.4.0";
|
2023-01-04 01:24:36 +00:00
|
|
|
format = "setuptools";
|
2018-10-16 20:32:16 +00:00
|
|
|
|
2023-01-04 01:24:36 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jgehrcke";
|
|
|
|
repo = "gipc";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-T5TqLanODyzJGyjDZz+75bbz3THxoobYnfJFQxAB76E=";
|
2018-10-16 20:32:16 +00:00
|
|
|
};
|
|
|
|
|
2023-01-04 01:24:36 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "gevent>=1.5,<=21.12.0" "gevent>=1.5"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
gevent
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-04 01:24:36 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-10-16 20:32:16 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 20:32:16 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://gehrcke.de/gipc";
|
2018-10-16 20:32:16 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|