From 9bfc3c6e54f06d27ab748a33eeb77cfd0ec61400 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Sun, 15 Sep 2024 19:34:52 +0200 Subject: [PATCH 1/2] python3Packages.rtmixer: convert to pyproject --- pkgs/development/python-modules/rtmixer/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/rtmixer/default.nix b/pkgs/development/python-modules/rtmixer/default.nix index fc31c0c40344..5fecf2010746 100644 --- a/pkgs/development/python-modules/rtmixer/default.nix +++ b/pkgs/development/python-modules/rtmixer/default.nix @@ -2,6 +2,7 @@ fetchFromGitHub, buildPythonPackage, isPy27, + setuptools, cython, portaudio, cffi, @@ -13,7 +14,7 @@ buildPythonPackage rec { pname = "rtmixer"; version = "0.1.7"; - format = "setuptools"; + pyproject = true; disabled = isPy27; src = fetchFromGitHub { @@ -24,10 +25,13 @@ buildPythonPackage rec { fetchSubmodules = true; }; + build-system = [ setuptools ]; + buildInputs = [ portaudio ]; + nativeBuildInputs = [ cython ]; - propagatedBuildInputs = [ + dependencies = [ cffi pa-ringbuffer sounddevice From c835e6d56e62c3c7d304c90f2bba7c4e0b4ff6a7 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Mon, 16 Sep 2024 11:00:21 +0200 Subject: [PATCH 2/2] python3Packages.rtmixer: add cffi for cross compilation Fixes > ModuleNotFoundError: No module named '_cffi_backend' during the build. --- pkgs/development/python-modules/rtmixer/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/rtmixer/default.nix b/pkgs/development/python-modules/rtmixer/default.nix index 5fecf2010746..a93caf9aab83 100644 --- a/pkgs/development/python-modules/rtmixer/default.nix +++ b/pkgs/development/python-modules/rtmixer/default.nix @@ -29,7 +29,10 @@ buildPythonPackage rec { buildInputs = [ portaudio ]; - nativeBuildInputs = [ cython ]; + nativeBuildInputs = [ + cython + cffi + ]; dependencies = [ cffi