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

python312Packages.radio-beam: Fix build
This commit is contained in:
Weijia Wang 2024-04-08 16:20:00 +02:00 committed by GitHub
commit a2a144eeb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 ];
};
}