From 6b1a81116da58d7ce22f6b0268ad78f33cc266cf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 22 Jan 2024 12:24:49 +0100 Subject: [PATCH 1/2] python311Packages.stupidartnet: init at 1.4.0 Library implementation of the Art-Net protocol https://github.com/cpvalente/stupidArtnet --- .../python-modules/stupidartnet/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/stupidartnet/default.nix diff --git a/pkgs/development/python-modules/stupidartnet/default.nix b/pkgs/development/python-modules/stupidartnet/default.nix new file mode 100644 index 000000000000..6092682d2afe --- /dev/null +++ b/pkgs/development/python-modules/stupidartnet/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, setuptools +}: + +buildPythonPackage rec { + pname = "stupidartnet"; + version = "1.4.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "cpvalente"; + repo = "stupidArtnet"; + rev = "refs/tags/${version}"; + hash = "sha256-2LfK63FJcdnXfDLuUzYNlspj1jmtw00S6el49cH+RRM="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "stupidArtnet" + ]; + + meta = with lib; { + description = "Library implementation of the Art-Net protocol"; + homepage = "https://github.com/cpvalente/stupidArtnet"; + changelog = "https://github.com/cpvalente/stupidArtnet/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cb15676b1260..d455991c64a7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13900,6 +13900,8 @@ self: super: with self; { stumpy = callPackage ../development/python-modules/stumpy { }; + stupidartnet = callPackage ../development/python-modules/stupidartnet { }; + stups-cli-support = callPackage ../development/python-modules/stups-cli-support { }; stups-fullstop = callPackage ../development/python-modules/stups-fullstop { }; From 58a7f4684a9baf37694844253c27734355a0ad10 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 23 Jan 2024 19:33:18 +0100 Subject: [PATCH 2/2] ledfx: 2.0.86 -> 2.0.8 Changelog: https://github.com/LedFx/LedFx/blob/2.0.89/CHANGELOG.rst --- pkgs/applications/audio/ledfx/default.nix | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/audio/ledfx/default.nix b/pkgs/applications/audio/ledfx/default.nix index 40a684631265..96b9f59eaccd 100644 --- a/pkgs/applications/audio/ledfx/default.nix +++ b/pkgs/applications/audio/ledfx/default.nix @@ -5,23 +5,25 @@ python3.pkgs.buildPythonPackage rec { pname = "ledfx"; - version = "2.0.86"; + version = "2.0.89"; pyproject= true; src = fetchPypi { inherit pname version; - hash = "sha256-miOGMsrvK3A3SYnd+i/lqB+9GOHtO4F3RW8NkxDgFqU="; + hash = "sha256-PBOj6u0TukT6wRKMQML4+XNQQZvsGyRzXBk9YsISst4="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace "'rpi-ws281x>=4.3.0; platform_system == \"Linux\"'," "" \ - --replace "sentry-sdk==1.38.0" "sentry-sdk" \ - --replace "~=" ">=" - ''; + pythonRelaxDeps = true; + + pythonRemoveDeps = [ + # not packaged + "rpi-ws281x" + ]; nativeBuildInputs = with python3.pkgs; [ - setuptools + cython + poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = with python3.pkgs; [ @@ -29,8 +31,8 @@ python3.pkgs.buildPythonPackage rec { aiohttp-cors aubio certifi - cython flux-led + python-dotenv icmplib mss multidict @@ -52,6 +54,7 @@ python3.pkgs.buildPythonPackage rec { sentry-sdk setuptools sounddevice + stupidartnet uvloop voluptuous zeroconf