mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-05 20:19:16 +03:00
python312Packages.skyfield: modernize
This commit is contained in:
parent
9a435661ae
commit
ff0052fbb0
@ -3,6 +3,7 @@
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
certifi,
|
||||
numpy,
|
||||
sgp4,
|
||||
@ -16,7 +17,7 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "skyfield";
|
||||
version = "1.45";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "skyfielders";
|
||||
@ -29,10 +30,12 @@ buildPythonPackage rec {
|
||||
# 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 = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
certifi
|
||||
numpy
|
||||
sgp4
|
||||
|
Loading…
Reference in New Issue
Block a user