about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorSébastien Maret <sebastien.maret@univ-grenoble-alpes.fr>2024-03-24 12:35:16 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2024-04-08 15:42:04 +0200
commite487bc2ae19b0c4acde44dfd6a7c2adadba0ea8f (patch)
tree1aa42c2e5391c0b7401c62aba3b55c046e2bd7d2 /pkgs/development
parentf20d4079ee63f18eb50fe4ad7bb953e4dc6b090d (diff)
python312Packages.radio-beam: Fix build
Closes #298597.

Co-authored-by: Robert Schütz <github@dotlambda.de>
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/radio-beam/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/radio-beam/default.nix b/pkgs/development/python-modules/radio-beam/default.nix
index 6d743125e8805..c0e9c31a5eca1 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 ];
   };
 }
-
-