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 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 083bcce5a0a0..2936cd7202a1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13912,6 +13912,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 { };