about summary refs log tree commit diff
path: root/pkgs/development/python-modules/skyfield/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/skyfield/default.nix')
-rw-r--r--pkgs/development/python-modules/skyfield/default.nix42
1 files changed, 31 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/skyfield/default.nix b/pkgs/development/python-modules/skyfield/default.nix
index b3dc5a236ea4..b917cf214890 100644
--- a/pkgs/development/python-modules/skyfield/default.nix
+++ b/pkgs/development/python-modules/skyfield/default.nix
@@ -1,33 +1,53 @@
-{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, certifi, numpy, sgp4, jplephem
-, pandas, ipython, matplotlib, assay
+{
+  lib,
+  buildPythonPackage,
+  pythonOlder,
+  fetchFromGitHub,
+  setuptools,
+  certifi,
+  numpy,
+  sgp4,
+  jplephem,
+  pandas,
+  ipython,
+  matplotlib,
+  assay,
 }:
 
 buildPythonPackage rec {
   pname = "skyfield";
-  version = "1.45";
-  format = "setuptools";
+  version = "1.49";
+  pyproject = true;
 
   src = fetchFromGitHub {
     owner = "skyfielders";
     repo = "python-skyfield";
     rev = version;
-    hash = "sha256-kZrXNVE+JGPGiVsd6CTwOqfciYLsD2A4pTS3FpqO+Dk=";
+    hash = "sha256-PZ63sohdfpop3nYQr2RIMjPbrL9jdfincEhw5D8NZ+Y=";
   };
 
   # 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"
+      --replace-fail "if IS_32_BIT" "if True"
   '';
 
-  propagatedBuildInputs = [ certifi numpy sgp4 jplephem ];
+  build-system = [ setuptools ];
 
-  nativeCheckInputs = [ pandas ipython matplotlib assay ];
+  dependencies = [
+    certifi
+    numpy
+    sgp4
+    jplephem
+  ];
 
-  # assay is broken on Python >= 3.11
-  # https://github.com/brandon-rhodes/assay/issues/15
-  doCheck = pythonOlder "3.11";
+  nativeCheckInputs = [
+    pandas
+    ipython
+    matplotlib
+    assay
+  ];
 
   checkPhase = ''
     runHook preCheck