9 astropy-extension-helpers,
12 oldest-supported-numpy,
29 buildPythonPackage rec {
34 disabled = pythonOlder "3.8"; # according to setup.cfg
37 inherit pname version;
38 hash = "sha256-5cb0XZEcMKy41VbH+O2ZSuxxsQjmHu5QZ/AK8eTjYTg=";
43 name = "drop-usage-known-bad-actor-cdn.patch";
44 url = "https://github.com/astropy/astropy/commit/d329cb38e49584ad0ff5244fd2fff74cfa1f92f1.patch";
45 hash = "sha256-+DbDwYeyR+mMDLRB4jiyol/5WO0LwqSCCEwjgflxoTk=";
50 substituteInPlace pyproject.toml \
51 --replace-fail "numpy>=2.0.0" "numpy"
55 astropy-extension-helpers
58 oldest-supported-numpy
63 propagatedBuildInputs = [
77 # Not running it inside the build directory. See:
78 # https://github.com/astropy/astropy/issues/15316#issuecomment-1722190547
81 export HOME="$(mktemp -d)"
82 export OMP_NUM_THREADS=$(( $NIX_BUILD_CORES / 4 ))
84 pythonImportsCheck = [ "astropy" ];
86 # May fail due to parallelism, see:
87 # https://github.com/astropy/astropy/issues/15441
88 "TestUnifiedOutputRegistry"
90 # fail due to pytest>=8
91 # https://github.com/astropy/astropy/issues/15960#issuecomment-1913654471
92 "test_distortion_header"
95 "test_timedelta_conversion"
96 # More flaky tests, see: https://github.com/NixOS/nixpkgs/issues/294392
97 "test_sidereal_lon_independent"
98 "test_timedelta_full_precision_arithmetic"
99 "test_datetime_to_timedelta"
101 "test_datetime_difference_agrees_with_timedelta_no_hypothesis"
102 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_sidereal_lat_independent" ];
105 description = "Astronomy/Astrophysics library for Python";
106 homepage = "https://www.astropy.org";
107 license = lib.licenses.bsd3;
108 platforms = lib.platforms.all;
109 maintainers = with lib.maintainers; [