Files
nixpkgs/pkgs/development/python-modules/gipc/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

72 lines
1.7 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
gevent,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "gipc";
version = "1.6.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jgehrcke";
repo = "gipc";
tag = version;
hash = "sha256-eYE7A1VDJ0NSshvdJKxPwGyVdW6BnyWoRSR1i1iTr8Y=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "gevent>=1.5,<=23.9.1" "gevent>=1.5"
'';
build-system = [ setuptools ];
dependencies = [ gevent ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "gipc" ];
disabledTests = [
# AttributeError
"test_all_handles_length"
"test_child"
"test_closeread"
"test_closewrite"
"test_early_readchild_exit"
"test_handlecount"
"test_handler"
"test_onewriter"
"test_readclose"
"test_singlemsg"
"test_twochannels_singlemsg"
"test_twoclose"
"test_twowriters"
"test_write_closewrite_read"
];
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";
changelog = "https://github.com/jgehrcke/gipc/blob/${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = [ ];
};
}