Merge pull request #298610 from smaret/fix-radio_beam-build

python312Packages.radio-beam: Fix build

authored by Weijia Wang and committed by GitHub a2a144ee 43f84cf3

+10 -2
+10 -2
pkgs/development/python-modules/radio-beam/default.nix
··· 1 1 { lib 2 2 , fetchPypi 3 + , fetchpatch2 3 4 , buildPythonPackage 4 5 , setuptools-scm 5 6 , astropy ··· 20 21 inherit pname version; 21 22 hash = "sha256-7AFkuuYLzibwwgz6zrFw0fBXCnGLzdm4OgT+Chve5jU="; 22 23 }; 24 + 25 + # Fix distutils deprecation in Python 3.12. See: 26 + # https://github.com/radio-astro-tools/radio-beam/pull/124 27 + patches = [ 28 + (fetchpatch2 { 29 + url = "https://github.com/radio-astro-tools/radio-beam/commit/1eb0216c8d7f5a4494d8d1fe8c79b48425a9c491.patch"; 30 + hash = "sha256-kTJF/cnkJCjJI2psvs+4MWFn/+b8TvUWjdfYu5ot0XU="; 31 + }) 32 + ]; 23 33 24 34 nativeBuildInputs = [ 25 35 setuptools-scm ··· 50 60 maintainers = with maintainers; [ smaret ]; 51 61 }; 52 62 } 53 - 54 -