From ae1ee608c0a3e953c6fc33ae72939058b4f2de66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 16 Jan 2024 18:28:33 -0800 Subject: [PATCH 1/2] Revert "python3Packages.starline: 0.1.5 -> 0.2.0" This reverts commit cec97c2722586db21d7a5e70ca5391fcc9705a42 because version 0.2.0 was yanked from PyPI. See https://github.com/Anonym-tsk/starline/issues/4. --- .../development/python-modules/starline/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/starline/default.nix b/pkgs/development/python-modules/starline/default.nix index 3ec25b5061e8..cdaca053ee1d 100644 --- a/pkgs/development/python-modules/starline/default.nix +++ b/pkgs/development/python-modules/starline/default.nix @@ -2,13 +2,14 @@ , buildPythonPackage , pythonOlder , fetchPypi +, fetchpatch , setuptools , requests }: buildPythonPackage rec { pname = "starline"; - version = "0.2.0"; + version = "0.1.5"; disabled = pythonOlder "3.5"; @@ -16,9 +17,17 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - hash = "sha256-VQsAq5XPWdkz93CKurQKTkHleQ5itlNHGv6Go68zIOY="; + hash = "sha256-F1P1/NKml2rtd1r7A/g5IVnwQMZzkXzAxjRRDZXBPLk="; }; + patches = [ + # https://github.com/Anonym-tsk/starline/pull/5 + (fetchpatch { + url = "https://github.com/Anonym-tsk/starline/commit/4e6cdf8e05c5fb8509ee384e77b39a2495587160.patch"; + hash = "sha256-y9b6ePH3IEgmt3ALHQGwH102rlm4KfmH4oIoIC93cWU="; + }) + ]; + nativeBuildInputs = [ setuptools ]; From 66212da3485b344f9c781b86bfdd207e94d832ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 16 Jan 2024 18:31:39 -0800 Subject: [PATCH 2/2] python311Packages.starline: exclude from bulk updates They would upgrade to the yanked 0.2.0 release. This should be reverted after the next starline bump. --- pkgs/development/python-modules/starline/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/starline/default.nix b/pkgs/development/python-modules/starline/default.nix index cdaca053ee1d..0496aad83261 100644 --- a/pkgs/development/python-modules/starline/default.nix +++ b/pkgs/development/python-modules/starline/default.nix @@ -41,6 +41,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "starline" ]; + # https://github.com/Anonym-tsk/starline/issues/4 + passthru.skipBulkUpdate = true; + meta = with lib; { description = "Unofficial python library for StarLine API"; homepage = "https://github.com/Anonym-tsk/starline";