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

47 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, gevent
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "gipc";
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
];
checkInputs = [
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;
};
}