python3Packages.skyfield: work-around broken tests on aarch64

This commit is contained in:
Zane van Iperen 2023-05-11 21:07:05 +10:00
parent 34ed5eaaec
commit 75acbc190e
No known key found for this signature in database
GPG Key ID: 68616B2D8AC4DCC5

View File

@ -13,6 +13,13 @@ buildPythonPackage rec {
hash = "sha256-kZrXNVE+JGPGiVsd6CTwOqfciYLsD2A4pTS3FpqO+Dk=";
};
# Fix broken tests on "exotic" platforms.
# https://github.com/skyfielders/python-skyfield/issues/582#issuecomment-822033858
postPatch = ''
substituteInPlace skyfield/tests/test_planetarylib.py \
--replace "if IS_32_BIT" "if True"
'';
propagatedBuildInputs = [ certifi numpy sgp4 jplephem ];
nativeCheckInputs = [ pandas ipython matplotlib assay ];