Skip to content

Commit 70077f9

Browse files
nh2vcunat
authored andcommitted
python3Packages.astropy: disable build-date-dependent irreproducible test
See: astropy/astropy#20725 Assisted-by: Claude Opus 5.5 in Zoo Code, human review. (cherry picked from commit 960a3a1)
1 parent 8a52d23 commit 70077f9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎pkgs/development/python-modules/astropy/default.nix‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,14 @@ buildPythonPackage rec {
153153
pytestFlags = [
154154
"--hypothesis-profile=ci"
155155
];
156+
disabledTests = [
157+
# Depends on the build date: Asserts that the IERS-B table bundled in
158+
# `astropy-iers-data` covers `Time.now() - 300 days`, so it fails for any
159+
# build more than 300 days after the end of that table.
160+
# Tests run by nixpkgs should not be time-dependent for reproducibility.
161+
# See https://github.com/astropy/astropy/issues/20725
162+
"test_iers_b_out_of_range_handling"
163+
];
156164
postCheck = ''
157165
rm conftest.py
158166
'';

0 commit comments

Comments
 (0)