diff --git a/pkgs/development/python-modules/radio-beam/default.nix b/pkgs/development/python-modules/radio-beam/default.nix index 6d743125e880..c0e9c31a5eca 100644 --- a/pkgs/development/python-modules/radio-beam/default.nix +++ b/pkgs/development/python-modules/radio-beam/default.nix @@ -1,5 +1,6 @@ { lib , fetchPypi +, fetchpatch2 , buildPythonPackage , setuptools-scm , astropy @@ -21,6 +22,15 @@ buildPythonPackage rec { hash = "sha256-7AFkuuYLzibwwgz6zrFw0fBXCnGLzdm4OgT+Chve5jU="; }; + # Fix distutils deprecation in Python 3.12. See: + # https://github.com/radio-astro-tools/radio-beam/pull/124 + patches = [ + (fetchpatch2 { + url = "https://github.com/radio-astro-tools/radio-beam/commit/1eb0216c8d7f5a4494d8d1fe8c79b48425a9c491.patch"; + hash = "sha256-kTJF/cnkJCjJI2psvs+4MWFn/+b8TvUWjdfYu5ot0XU="; + }) + ]; + nativeBuildInputs = [ setuptools-scm ]; @@ -50,5 +60,3 @@ buildPythonPackage rec { maintainers = with maintainers; [ smaret ]; }; } - -