From 0a4d6516d43960b17566d79ca0b5ecc1ba92367f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 16 Aug 2024 05:42:57 -0700 Subject: [PATCH 1/2] python312Packages.python-linkplay: run tests --- .../python-modules/python-linkplay/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/python-linkplay/default.nix b/pkgs/development/python-modules/python-linkplay/default.nix index 362c7c4275bd..bc8dabe18f73 100644 --- a/pkgs/development/python-modules/python-linkplay/default.nix +++ b/pkgs/development/python-modules/python-linkplay/default.nix @@ -3,7 +3,7 @@ async-timeout, async-upnp-client, buildPythonPackage, - fetchPypi, + fetchFromGitHub, lib, pytest-asyncio, pytestCheckHook, @@ -15,10 +15,11 @@ buildPythonPackage rec { version = "0.0.6"; pyproject = true; - src = fetchPypi { - pname = "python_linkplay"; - inherit version; - hash = "sha256-mChlhJt2p77KWXWNZztrEA8Z2BmYkPLYPdv9Gw7p5/I="; + src = fetchFromGitHub { + owner = "Velleman"; + repo = "python-linkplay"; + rev = "refs/tags/v${version}"; + hash = "sha256-GUpotQLs+xzsMV3i52YtWYm9IoQLyyw8EY9VhG+uT8o="; }; build-system = [ setuptools ]; @@ -36,10 +37,6 @@ buildPythonPackage rec { pytestCheckHook ]; - # no tests on PyPI, no tags on GitHub - # https://github.com/Velleman/python-linkplay/issues/23 - doCheck = false; - meta = { description = "Python Library for Seamless LinkPlay Device Control"; homepage = "https://github.com/Velleman/python-linkplay"; From af6af513b996b69165059dfe4fef9a4f1561a9a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 16 Aug 2024 05:43:09 -0700 Subject: [PATCH 2/2] python312Packages.python-linkplay: 0.0.6 -> 0.0.8 Diff: https://github.com/Velleman/python-linkplay/compare/refs/tags/v0.0.6...v0.0.8 Changelog: https://github.com/Velleman/python-linkplay/releases/tag/v0.0.7 https://github.com/Velleman/python-linkplay/releases/tag/v0.0.8 --- .../python-modules/python-linkplay/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/python-linkplay/default.nix b/pkgs/development/python-modules/python-linkplay/default.nix index bc8dabe18f73..387ff64dc3e8 100644 --- a/pkgs/development/python-modules/python-linkplay/default.nix +++ b/pkgs/development/python-modules/python-linkplay/default.nix @@ -1,8 +1,11 @@ { + aiofiles, aiohttp, + appdirs, async-timeout, async-upnp-client, buildPythonPackage, + deprecated, fetchFromGitHub, lib, pytest-asyncio, @@ -12,22 +15,27 @@ buildPythonPackage rec { pname = "python-linkplay"; - version = "0.0.6"; + version = "0.0.8"; pyproject = true; src = fetchFromGitHub { owner = "Velleman"; repo = "python-linkplay"; rev = "refs/tags/v${version}"; - hash = "sha256-GUpotQLs+xzsMV3i52YtWYm9IoQLyyw8EY9VhG+uT8o="; + hash = "sha256-Ju4fubZPOVreu7YGhAPfSepXzaXDa7ZpvsAxoSHWLqo="; }; build-system = [ setuptools ]; + pythonRelaxDeps = [ "aiofiles" ]; + dependencies = [ + aiofiles aiohttp + appdirs async-timeout async-upnp-client + deprecated ]; pythonImportsCheck = [ "linkplay" ]; @@ -38,6 +46,7 @@ buildPythonPackage rec { ]; meta = { + changelog = "https://github.com/Velleman/python-linkplay/releases/tag/v${version}"; description = "Python Library for Seamless LinkPlay Device Control"; homepage = "https://github.com/Velleman/python-linkplay"; license = lib.licenses.mit;