Merge pull request #297698 from smaret/fix-aplpy

python312Packages.aplpy: fix build
This commit is contained in:
Weijia Wang 2024-04-08 15:40:11 +02:00 committed by GitHub
commit 8dd60048ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

View File

@ -32,6 +32,20 @@ buildPythonPackage rec {
hash = "sha256-KCdmBwQWt7IfHsjq7pWlbSISEpfQZDyt+SQSTDaUCV4=";
};
# Fix build with Astropy 6 and Python 3.12.
patches = [
# https://github.com/aplpy/aplpy/pull/496
(fetchpatch {
url = "https://github.com/aplpy/aplpy/commit/d232a4984bc6a83ec86dfdc3ab3bc1b05de44c48.patch";
hash = "sha256-jGUTzIrVdGNPy0BV8w46jzz045fDXBisiwIn90bn7oY=";
})
# https://github.com/aplpy/aplpy/pull/497
(fetchpatch {
url = "https://github.com/aplpy/aplpy/commit/468be394970b39f1aaa6debef51eb674e2dd86d8.patch";
hash = "sha256-/ovLrFOKb3RQ8TZSviuOV6EYNgz0gtrhVWZLFJBrzFg=";
})
];
nativeBuildInputs = [
setuptools
setuptools-scm