From 549e1bdb99d771bab7205a3783887938b8596bee Mon Sep 17 00:00:00 2001 From: Amadej Kastelic Date: Fri, 11 Jul 2025 19:50:36 +0200 Subject: [PATCH] python3Packages.astroquery: fix build --- .../python-modules/astroquery/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/python-modules/astroquery/default.nix b/pkgs/development/python-modules/astroquery/default.nix index 3da2ea9c8c22..196c96fa62f6 100644 --- a/pkgs/development/python-modules/astroquery/default.nix +++ b/pkgs/development/python-modules/astroquery/default.nix @@ -2,7 +2,9 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch2, astropy, + boto3, requests, keyring, beautifulsoup4, @@ -31,6 +33,15 @@ buildPythonPackage rec { hash = "sha256-5pNKV+XNfUQca7WoWboVphXffzyVIHCmfxwr4nBMaEk="; }; + patches = [ + # https://github.com/astropy/astroquery/pull/3311 + (fetchpatch2 { + name = "setuptools-package-index.patch"; + url = "https://github.com/astropy/astroquery/commit/9d43beb4b7bea424d73fff0b602ca90026155519.patch"; + hash = "sha256-3QdOwP1rlWeScGxHT9ZVPmffE7S1XE0cbtnQ8T4bIYw="; + }) + ]; + build-system = [ astropy-helpers setuptools @@ -53,6 +64,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; checkInputs = [ + boto3 matplotlib pillow pytest