From 886bdc4543438773a6fb50ea3f6ac48e72517a54 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 15 Aug 2025 00:59:51 +0200 Subject: [PATCH] python313Packages.pynanoleaf: refactor --- .../python-modules/pynanoleaf/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pynanoleaf/default.nix b/pkgs/development/python-modules/pynanoleaf/default.nix index 892900c118ba..113818784680 100644 --- a/pkgs/development/python-modules/pynanoleaf/default.nix +++ b/pkgs/development/python-modules/pynanoleaf/default.nix @@ -2,23 +2,23 @@ lib, buildPythonPackage, fetchPypi, - isPy3k, requests, + setuptools, }: buildPythonPackage rec { pname = "pynanoleaf"; version = "0.1.1"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; - sha256 = "32a083759c4f99e019e0013670487841f8edf807c7a07742a971fa18707072a7"; + hash = "sha256-MqCDdZxPmeAZ4AE2cEh4Qfjt+AfHoHdCqXH6GHBwcqc="; }; - disabled = !isPy3k; + build-system = [ setuptools ]; - propagatedBuildInputs = [ requests ]; + dependencies = [ requests ]; # pynanoleaf does not contain tests doCheck = false; @@ -26,8 +26,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "pynanoleaf" ]; meta = with lib; { - homepage = "https://github.com/Oro/pynanoleaf"; description = "Python3 wrapper for the Nanoleaf API, capable of controlling both Nanoleaf Aurora and Nanoleaf Canvas"; + homepage = "https://github.com/Oro/pynanoleaf"; + changelog = "https://github.com/Oro/pynanoleaf/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ oro ]; };