python312Packages.radio-beam: Fix build

Closes #298597.

Co-authored-by: Robert Schütz <github@dotlambda.de>
This commit is contained in:
Sébastien Maret 2024-03-24 12:35:16 +01:00 committed by Weijia Wang
parent f20d4079ee
commit e487bc2ae1
1 changed files with 10 additions and 2 deletions

View File

@ -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 ];
};
}