From c2299a75dd6328237bf02191fc5daa6df4068a3f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jan 2025 23:30:02 +0100 Subject: [PATCH 1/2] python312Packages.bizkaibus: 0.1.4 -> 0.2.0 Diff: https://github.com/UgaitzEtxebarria/BizkaibusRTPI/compare/0.1.4...0.2.0 --- pkgs/development/python-modules/bizkaibus/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/bizkaibus/default.nix b/pkgs/development/python-modules/bizkaibus/default.nix index ba078194af8f..b067a7f2bd9a 100644 --- a/pkgs/development/python-modules/bizkaibus/default.nix +++ b/pkgs/development/python-modules/bizkaibus/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "bizkaibus"; - version = "0.1.4"; + version = "0.2.0"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -16,7 +16,7 @@ buildPythonPackage rec { owner = "UgaitzEtxebarria"; repo = "BizkaibusRTPI"; rev = version; - sha256 = "1v7k9fclndb4x9npzhzj68kbrc3lb3wr6cwal2x46ib207593ckr"; + sha256 = "sha256-TM02pSSOELRGSwsKc5C+34W94K6mnS0C69aijsPqSWs="; }; propagatedBuildInputs = [ requests ]; From 9d49728c39affc48df606de4272522f8d06fb9fe Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Jan 2025 23:33:24 +0100 Subject: [PATCH 2/2] python312Packages.bizkaibus: refactor --- .../python-modules/bizkaibus/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/bizkaibus/default.nix b/pkgs/development/python-modules/bizkaibus/default.nix index b067a7f2bd9a..c79a3c35b966 100644 --- a/pkgs/development/python-modules/bizkaibus/default.nix +++ b/pkgs/development/python-modules/bizkaibus/default.nix @@ -1,25 +1,29 @@ { lib, - requests, + aiohttp, buildPythonPackage, fetchFromGitHub, pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "bizkaibus"; version = "0.2.0"; - format = "setuptools"; - disabled = pythonOlder "3.6"; + pyproject = true; + + disabled = pythonOlder "3.12"; src = fetchFromGitHub { owner = "UgaitzEtxebarria"; repo = "BizkaibusRTPI"; rev = version; - sha256 = "sha256-TM02pSSOELRGSwsKc5C+34W94K6mnS0C69aijsPqSWs="; + hash = "sha256-TM02pSSOELRGSwsKc5C+34W94K6mnS0C69aijsPqSWs="; }; - propagatedBuildInputs = [ requests ]; + build-system = [ setuptools ]; + + dependencies = [ aiohttp ]; # Project has no tests doCheck = false; @@ -29,7 +33,8 @@ buildPythonPackage rec { meta = with lib; { description = "Python module to get information about Bizkaibus buses"; homepage = "https://github.com/UgaitzEtxebarria/BizkaibusRTPI"; - license = with licenses; [ mit ]; + changelog = "https://github.com/UgaitzEtxebarria/BizkaibusRTPI/releases/tag/${version}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }