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 { lib 2 , fetchPypi 3 , buildPythonPackage 4 , setuptools-scm 5 , astropy ··· 20 inherit pname version; 21 hash = "sha256-7AFkuuYLzibwwgz6zrFw0fBXCnGLzdm4OgT+Chve5jU="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools-scm ··· 50 maintainers = with maintainers; [ smaret ]; 51 }; 52 } 53 - 54 -
··· 1 { lib 2 , fetchPypi 3 + , fetchpatch2 4 , buildPythonPackage 5 , setuptools-scm 6 , astropy ··· 21 inherit pname version; 22 hash = "sha256-7AFkuuYLzibwwgz6zrFw0fBXCnGLzdm4OgT+Chve5jU="; 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 + ]; 33 34 nativeBuildInputs = [ 35 setuptools-scm ··· 60 maintainers = with maintainers; [ smaret ]; 61 }; 62 }