at 24.05-pre 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, gevent 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "gipc"; 10 version = "1.4.0"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "jgehrcke"; 15 repo = "gipc"; 16 rev = "refs/tags/${version}"; 17 hash = "sha256-T5TqLanODyzJGyjDZz+75bbz3THxoobYnfJFQxAB76E="; 18 }; 19 20 postPatch = '' 21 substituteInPlace setup.py \ 22 --replace "gevent>=1.5,<=21.12.0" "gevent>=1.5" 23 ''; 24 25 propagatedBuildInputs = [ 26 gevent 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 meta = with lib; { 34 description = "gevent-cooperative child processes and IPC"; 35 longDescription = '' 36 Usage of Python's multiprocessing package in a gevent-powered 37 application may raise problems and most likely breaks the application 38 in various subtle ways. gipc (pronunciation "gipsy") is developed with 39 the motivation to solve many of these issues transparently. With gipc, 40 multiprocessing. Process-based child processes can safely be created 41 anywhere within your gevent-powered application. 42 ''; 43 homepage = "http://gehrcke.de/gipc"; 44 license = licenses.mit; 45 }; 46 47}