From d258efb05502aeb5fa316adace5591ad1bc5f21d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 2 Jan 2024 14:01:17 +0100 Subject: [PATCH 1/2] python311Packages.boschshcpy: 0.2.84 -> 0.2.88 Diff: https://github.com/tschamm/boschshcpy/compare/0.2.84...0.2.88 --- pkgs/development/python-modules/boschshcpy/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/boschshcpy/default.nix b/pkgs/development/python-modules/boschshcpy/default.nix index c6eaaab35a78..634395deff54 100644 --- a/pkgs/development/python-modules/boschshcpy/default.nix +++ b/pkgs/development/python-modules/boschshcpy/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "boschshcpy"; - version = "0.2.84"; + version = "0.2.88"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "tschamm"; repo = pname; rev = version; - hash = "sha256-aSFnDLzJCZjHX6m/iZKC5F5kY7JXRZp0//jY8kkjC3I="; + hash = "sha256-tyx7VJGsU9YYNJQy1mly0AgwKULZ1BWeRzz1BDgXrUU="; }; propagatedBuildInputs = [ From 2c764ccdaf76df54c42432a02d706a72c96a1c84 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 2 Jan 2024 14:05:16 +0100 Subject: [PATCH 2/2] python311Packages.boschshcpy: refactor --- .../python-modules/boschshcpy/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/boschshcpy/default.nix b/pkgs/development/python-modules/boschshcpy/default.nix index 634395deff54..38a1338ab65b 100644 --- a/pkgs/development/python-modules/boschshcpy/default.nix +++ b/pkgs/development/python-modules/boschshcpy/default.nix @@ -5,23 +5,28 @@ , getmac , pythonOlder , requests +, setuptools , zeroconf }: buildPythonPackage rec { pname = "boschshcpy"; version = "0.2.88"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "tschamm"; - repo = pname; - rev = version; + repo = "boschshcpy"; + rev = "refs/tags/${version}"; hash = "sha256-tyx7VJGsU9YYNJQy1mly0AgwKULZ1BWeRzz1BDgXrUU="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ cryptography getmac