From 33d78b9e276a33e6f08c646ee84ebc7a84b810d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 27 Mar 2026 01:53:26 +0100 Subject: [PATCH] python313Packages.aiosendspin: 2.1.0 -> 4.4.0 --- .../python-modules/aiosendspin/default.nix | 32 +++++++++++++++---- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/aiosendspin/default.nix b/pkgs/development/python-modules/aiosendspin/default.nix index f9c5f4a92c0f..c7cf72fbf1fd 100644 --- a/pkgs/development/python-modules/aiosendspin/default.nix +++ b/pkgs/development/python-modules/aiosendspin/default.nix @@ -10,27 +10,37 @@ aiohttp, av, mashumaro, + numpy, orjson, pillow, zeroconf, + # test dependencies + pytest-aiohttp, + pytest-cov-stub, + pytest-timeout, + pytest-xdist, + pytestCheckHook, + # meta music-assistant, + + nixosTests, }: buildPythonPackage rec { pname = "aiosendspin"; - version = "2.1.0"; + version = "4.4.0"; pyproject = true; src = fetchFromGitHub { owner = "Sendspin"; repo = "aiosendspin"; tag = version; - hash = "sha256-9VhNtfXH2r/cGkscz51PIK2/66pPOGv0S0IpO0wFvO4="; + hash = "sha256-7edFCGNbECW5rrTbF7vJ4lJUc2IrQZD9VTR3IxJRP08="; }; - # https://github.com/Sendspin/aiosendspin/blob/1.2.0/pyproject.toml#L7 + # https://github.com/Sendspin/aiosendspin/blob/4.4.0/pyproject.toml#L7 postPatch = '' substituteInPlace pyproject.toml \ --replace-fail 'version = "0.0.0"' 'version = "${version}"' @@ -44,19 +54,29 @@ buildPythonPackage rec { aiohttp av mashumaro + numpy orjson pillow zeroconf ]; - doCheck = false; # no tests + nativeCheckInputs = [ + pytest-aiohttp + pytest-cov-stub + pytest-timeout + pytest-xdist + pytestCheckHook + ]; pythonImportsCheck = [ "aiosendspin" ]; - # needs manual compat testing with music-assistant (sendspin provider) - passthru.skipBulkUpdate = true; # nixpkgs-update: no auto update + passthru = { + # needs manual compat testing with music-assistant (sendspin provider) + skipBulkUpdate = true; # nixpkgs-update: no auto update + tests = nixosTests.music-assistant; + }; meta = { changelog = "https://github.com/Sendspin/aiosendspin/releases/tag/${src.tag}";