From 148b4d78c2763b90287de479f8a3bc36d7065484 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 31 May 2026 18:53:02 +0000 Subject: [PATCH] python3Packages.synchronicity: cleanup --- .../python-modules/synchronicity/default.nix | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/synchronicity/default.nix b/pkgs/development/python-modules/synchronicity/default.nix index 5ce1539f0da4..4b5a0f5c8f22 100644 --- a/pkgs/development/python-modules/synchronicity/default.nix +++ b/pkgs/development/python-modules/synchronicity/default.nix @@ -3,38 +3,55 @@ stdenv, buildPythonPackage, fetchFromGitHub, - gevent, + + # build-system hatchling, + + # dependencies + typing-extensions, + + # optional-dependencies + sigtools, + + # tests mypy, pytest-asyncio, pytest-markdown-docs, pytestCheckHook, pythonOlder, - sigtools, - typing-extensions, + gevent, }: buildPythonPackage (finalAttrs: { pname = "synchronicity"; version = "0.12.3"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "modal-labs"; repo = "synchronicity"; - rev = "v${finalAttrs.version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-zqZaW/CX7PELh+PzC/2ofNUiWP2Enm/kg2uELQUSmk0="; }; - build-system = [ hatchling ]; - dependencies = [ typing-extensions ]; - optional-dependencies.compile = [ sigtools ]; + build-system = [ + hatchling + ]; + + dependencies = [ + typing-extensions + ]; + + optional-dependencies = { + compile = [ sigtools ]; + }; nativeCheckInputs = [ mypy - pytestCheckHook pytest-asyncio pytest-markdown-docs + pytestCheckHook sigtools ] ++ lib.optionals (pythonOlder "3.13") [