python3Packages.synchronicity: init at 0.11.1

This commit is contained in:
Nazar Vinnichuk
2026-03-31 21:10:24 +03:00
parent 7ee7837876
commit 146fb01d7d
2 changed files with 65 additions and 0 deletions
@@ -0,0 +1,63 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
gevent,
hatchling,
mypy,
pytest-asyncio,
pytest-markdown-docs,
pytestCheckHook,
pythonOlder,
sigtools,
typing-extensions,
}:
buildPythonPackage (finalAttrs: {
pname = "synchronicity";
version = "0.11.1";
pyproject = true;
src = fetchFromGitHub {
owner = "modal-labs";
repo = "synchronicity";
rev = "v${finalAttrs.version}";
hash = "sha256-Uyn4apHILBwjHoMkr52IkcFlaX7jx3WzuzZfvdxcDFo=";
};
build-system = [ hatchling ];
dependencies = [ typing-extensions ];
optional-dependencies.compile = [ sigtools ];
nativeCheckInputs = [
mypy
pytestCheckHook
pytest-asyncio
pytest-markdown-docs
sigtools
]
++ lib.optionals (pythonOlder "3.13") [
gevent
];
disabledTests = [
# Assert execution time, non-deterministic
"test_blocking"
"test_multithreaded"
"test_nowrap"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Assertion error
"test_async"
];
pythonImportsCheck = [ "synchronicity" ];
meta = {
description = "Export blocking and async library versions from a single async implementation";
homepage = "https://github.com/modal-labs/synchronicity";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ Kharacternyk ];
};
})
+2
View File
@@ -18825,6 +18825,8 @@ self: super: with self; {
syncer = callPackage ../development/python-modules/syncer { };
synchronicity = callPackage ../development/python-modules/synchronicity { };
syndication-domination = toPythonModule (
pkgs.syndication-domination.override {
enablePython = true;