From 46bb97de2bc6102a0e449ae1d3a3c9fff59285dc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 15 Nov 2024 11:01:29 +0100 Subject: [PATCH 1/2] python312Packages.pydanfossair: 0.2.0 -> 0.3.0 Diff: https://github.com/JonasPed/pydanfoss-air/compare/v0.2.0...v0.3.0 --- pkgs/development/python-modules/pydanfossair/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pydanfossair/default.nix b/pkgs/development/python-modules/pydanfossair/default.nix index dd8a8d9c71af..6afcbeac8ed4 100644 --- a/pkgs/development/python-modules/pydanfossair/default.nix +++ b/pkgs/development/python-modules/pydanfossair/default.nix @@ -6,14 +6,14 @@ buildPythonPackage rec { pname = "pydanfossair"; - version = "0.2.0"; + version = "0.3.0"; format = "setuptools"; src = fetchFromGitHub { owner = "JonasPed"; repo = "pydanfoss-air"; rev = "v${version}"; - hash = "sha256-WTRiEQbd3wwNAz1gk0rS3khy6lg61rcGZQTMlBc0uO8="; + hash = "sha256-ZTairxQbvijNiSomDoeZtmL/Hn3ce1Z5TEOf+0C8cYg="; }; # Project has no tests From 4c268bad305eb12a8fb2bc22f44d909cbbebf229 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 15 Nov 2024 11:06:58 +0100 Subject: [PATCH 2/2] python312Packages.pydanfossair: refactor --- pkgs/development/python-modules/pydanfossair/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pydanfossair/default.nix b/pkgs/development/python-modules/pydanfossair/default.nix index 6afcbeac8ed4..00c600d305cf 100644 --- a/pkgs/development/python-modules/pydanfossair/default.nix +++ b/pkgs/development/python-modules/pydanfossair/default.nix @@ -2,27 +2,32 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, }: buildPythonPackage rec { pname = "pydanfossair"; version = "0.3.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "JonasPed"; repo = "pydanfoss-air"; - rev = "v${version}"; + rev = "refs/tags/v${version}"; hash = "sha256-ZTairxQbvijNiSomDoeZtmL/Hn3ce1Z5TEOf+0C8cYg="; }; + build-system = [ setuptools ]; + # Project has no tests doCheck = false; + pythonImportsCheck = [ "pydanfossair" ]; meta = with lib; { description = "Python interface for Danfoss Air HRV systems"; homepage = "https://github.com/JonasPed/pydanfoss-air"; + changelog = "https://github.com/JonasPed/pydanfoss-air/releases/tag/v${version}"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; };