From 55a79dcfee38687c4f66f5575618873b90fad9a7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 29 Sep 2023 09:41:01 +0200 Subject: [PATCH 1/2] python311Packages.py-nextbusnext: 0.1.5 -> 1.0.0 Diff: https://github.com/ViViDboarder/py_nextbus/compare/v0.1.5...v1.0.0 --- pkgs/development/python-modules/py-nextbusnext/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/py-nextbusnext/default.nix b/pkgs/development/python-modules/py-nextbusnext/default.nix index 67e934dad1d1..6cdb785aa7f9 100644 --- a/pkgs/development/python-modules/py-nextbusnext/default.nix +++ b/pkgs/development/python-modules/py-nextbusnext/default.nix @@ -6,7 +6,7 @@ buildPythonPackage rec { pname = "py-nextbusnext"; - version = "0.1.5"; + version = "1.0.0"; format = "setuptools"; @@ -14,7 +14,7 @@ buildPythonPackage rec { owner = "ViViDboarder"; repo = "py_nextbus"; rev = "v${version}"; - hash = "sha256-uUHA8v5iTISmPaTgk0RvcLLRM34f3JXUjZClKGXdMoI="; + hash = "sha256-044VDg7bQNNnRGiPZW9gwo3Bzq0LPYKTrd3EgmBOcGA="; }; nativeCheckInputs = [ From cc1bc258ceab4fc39c8ae411e630424f0d29b0cf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 29 Sep 2023 09:43:41 +0200 Subject: [PATCH 2/2] python311Packages.py-nextbusnext: disable on unsupported Python releases --- .../python-modules/py-nextbusnext/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/py-nextbusnext/default.nix b/pkgs/development/python-modules/py-nextbusnext/default.nix index 6cdb785aa7f9..2d01e0cf8ffa 100644 --- a/pkgs/development/python-modules/py-nextbusnext/default.nix +++ b/pkgs/development/python-modules/py-nextbusnext/default.nix @@ -2,18 +2,20 @@ , buildPythonPackage , fetchFromGitHub , pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "py-nextbusnext"; version = "1.0.0"; - format = "setuptools"; + disabled = pythonOlder "3.8"; + src = fetchFromGitHub { owner = "ViViDboarder"; repo = "py_nextbus"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-044VDg7bQNNnRGiPZW9gwo3Bzq0LPYKTrd3EgmBOcGA="; }; @@ -21,12 +23,14 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "py_nextbus" ]; + pythonImportsCheck = [ + "py_nextbus" + ]; - meta = { + meta = with lib; { description = "Minimalistic Python client for the NextBus public API"; homepage = "https://github.com/ViViDboarder/py_nextbus"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ dotlambda ]; + license = licenses.mit; + maintainers = with maintainers; [ dotlambda ]; }; }