Skip to content

Commit

Permalink
Merge #323658: python3Packages.astropy: apply patch removing the usag…
Browse files Browse the repository at this point in the history
…e of polyfill.io

...into staging-next
  • Loading branch information
vcunat committed Jul 1, 2024
2 parents 0b714b1 + abde345 commit 9b8b1b9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/development/python-modules/astropy/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
lib,
fetchPypi,
fetchpatch,
buildPythonPackage,
pythonOlder,

Expand Down Expand Up @@ -37,6 +38,14 @@ buildPythonPackage rec {
hash = "sha256-5cb0XZEcMKy41VbH+O2ZSuxxsQjmHu5QZ/AK8eTjYTg=";
};

patches = [
(fetchpatch {
name = "drop-usage-known-bad-actor-cdn.patch";
url = "https://github.com/astropy/astropy/commit/d329cb38e49584ad0ff5244fd2fff74cfa1f92f1.patch";
hash = "sha256-+DbDwYeyR+mMDLRB4jiyol/5WO0LwqSCCEwjgflxoTk=";
})
];

postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "numpy>=2.0.0" "numpy"
Expand Down Expand Up @@ -88,6 +97,8 @@ buildPythonPackage rec {
"test_sidereal_lon_independent"
"test_timedelta_full_precision_arithmetic"
"test_datetime_to_timedelta"

"test_datetime_difference_agrees_with_timedelta_no_hypothesis"
] ++ lib.optionals stdenv.isDarwin [ "test_sidereal_lat_independent" ];

meta = {
Expand Down

0 comments on commit 9b8b1b9

Please sign in to comment.