From 0357a40b865bc29936f0b098ccd0c04c5006db10 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 May 2024 23:12:12 +0200 Subject: [PATCH 1/3] python312Packages.python-ecobee-api: refactor --- .../python-ecobee-api/default.nix | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/python-ecobee-api/default.nix b/pkgs/development/python-modules/python-ecobee-api/default.nix index 4d12ee0c99d7..789cbe264550 100644 --- a/pkgs/development/python-modules/python-ecobee-api/default.nix +++ b/pkgs/development/python-modules/python-ecobee-api/default.nix @@ -1,20 +1,30 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub +, pythonOlder , requests +, setuptools }: buildPythonPackage rec { pname = "python-ecobee-api"; version = "0.2.17"; - format = "setuptools"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-lJCbNOQJ8xmMa4V+tSFZx4QasK8ZLfsFavMP9Zge4K4="; + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "nkgilley"; + repo = "python-ecobee-api"; + rev = "refs/tags/${version}"; + hash = "sha256-1+UEzdl+sFUfY7MySs9KOfmR122okAzPKePPfcurdDk="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ requests ]; @@ -26,6 +36,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python API for talking to Ecobee thermostats"; homepage = "https://github.com/nkgilley/python-ecobee-api"; + changelog = "https://github.com/nkgilley/python-ecobee-api/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; }; From af190e4d57818f335d17d525d0fa9b8fba78baed Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 May 2024 23:12:38 +0200 Subject: [PATCH 2/3] python312Packages.python-ecobee-api: 0.2.17 -> 0.2.18 Diff: https://github.com/nkgilley/python-ecobee-api/compare/refs/tags/0.2.17...0.2.18 Changelog: https://github.com/nkgilley/python-ecobee-api/releases/tag/0.2.18 --- pkgs/development/python-modules/python-ecobee-api/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/python-ecobee-api/default.nix b/pkgs/development/python-modules/python-ecobee-api/default.nix index 789cbe264550..c91ae6ef2fde 100644 --- a/pkgs/development/python-modules/python-ecobee-api/default.nix +++ b/pkgs/development/python-modules/python-ecobee-api/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "python-ecobee-api"; - version = "0.2.17"; + version = "0.2.18"; pyproject = true; disabled = pythonOlder "3.8"; @@ -17,7 +17,7 @@ buildPythonPackage rec { owner = "nkgilley"; repo = "python-ecobee-api"; rev = "refs/tags/${version}"; - hash = "sha256-1+UEzdl+sFUfY7MySs9KOfmR122okAzPKePPfcurdDk="; + hash = "sha256-WBVHlA7cAQGCFRNSANX6PqPQYMRw74GEAlTFwSBxVQU="; }; build-system = [ From d6a01b6fa5502da23928b91e4adc21b9c4b00618 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 May 2024 23:13:07 +0200 Subject: [PATCH 3/3] python312Packages.python-ecobee-api: forma twith nixfmt --- .../python-ecobee-api/default.nix | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/python-ecobee-api/default.nix b/pkgs/development/python-modules/python-ecobee-api/default.nix index c91ae6ef2fde..ad51ef12d5c9 100644 --- a/pkgs/development/python-modules/python-ecobee-api/default.nix +++ b/pkgs/development/python-modules/python-ecobee-api/default.nix @@ -1,9 +1,10 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, requests -, setuptools +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + requests, + setuptools, }: buildPythonPackage rec { @@ -20,13 +21,9 @@ buildPythonPackage rec { hash = "sha256-WBVHlA7cAQGCFRNSANX6PqPQYMRw74GEAlTFwSBxVQU="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; - dependencies = [ - requests - ]; + dependencies = [ requests ]; # no tests implemented doCheck = false;