From patchwork Tue May 4 08:57:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Guillaume Le Vaillant X-Patchwork-Id: 29109 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 461E227BC82; Tue, 4 May 2021 10:00:39 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id F054E27BC81 for ; Tue, 4 May 2021 10:00:38 +0100 (BST) Received: from localhost ([::1]:46714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldqv0-0008EJ-1V for patchwork@mira.cbaines.net; Tue, 04 May 2021 05:00:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldqtT-0006ZN-P2 for guix-patches@gnu.org; Tue, 04 May 2021 04:59:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40312) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldqtT-0000Fp-G9 for guix-patches@gnu.org; Tue, 04 May 2021 04:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldqtT-0004cs-F0 for guix-patches@gnu.org; Tue, 04 May 2021 04:59:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48217] [PATCH 6/9] gnu: Add sgp4. Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 May 2021 08:59:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48217 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48217@debbugs.gnu.org Cc: Guillaume Le Vaillant Received: via spool by 48217-submit@debbugs.gnu.org id=B48217.162011869317713 (code B ref 48217); Tue, 04 May 2021 08:59:03 +0000 Received: (at 48217) by debbugs.gnu.org; 4 May 2021 08:58:13 +0000 Received: from localhost ([127.0.0.1]:51842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldqsf-0004bY-3i for submit@debbugs.gnu.org; Tue, 04 May 2021 04:58:13 -0400 Received: from mout01.posteo.de ([185.67.36.65]:59057) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldqsd-0004aw-L5 for 48217@debbugs.gnu.org; Tue, 04 May 2021 04:58:12 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 09EF424002A for <48217@debbugs.gnu.org>; Tue, 4 May 2021 10:58:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1620118686; bh=TKIyYshWNNlBCxkYR8vWqWzaqqLwsGwjZ3MyZEKvrxs=; h=From:To:Cc:Subject:Date:From; b=I5L1Q+zbSdkmV1Jdwe9N6TQHdEF5Njc1faoJrZaMkFHN7jpjvwByYvaILtDBQoXy1 fqUSaods6LZiJaN96Y3YfTzqbwMEP4c6xmchbdJq3w5uScuIvMGk0bVYL0TkBHgRDw masGeMCLugwQ3+mHu+shjl9TniuwBjV9XvjqmtBjBjA7W/QhkHpnU8JH9jBu8gp4qa Gd8bknun4JYGwwkD9he2ZD+hxjIW61o9mk34kXIo38fpLTrdv19xAyY6hycNTFZTem 7dUsshTcVg9dK3LDhC4L6aE3HzdwTLtYEIQ1WHQrtd0mWUyZzcdipNgtgF+06XFPhU b0sbqQjQO953A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FZDJY1NZsz6tm6; Tue, 4 May 2021 10:58:05 +0200 (CEST) From: Guillaume Le Vaillant Date: Tue, 4 May 2021 08:57:02 +0000 Message-Id: <20210504085705.5298-6-glv@posteo.net> In-Reply-To: <20210504085705.5298-1-glv@posteo.net> References: <87czu6rimc.fsf@yamatai> <20210504085705.5298-1-glv@posteo.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/astronomy.scm (sgp4): New variable. --- gnu/packages/astronomy.scm | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 85164e7262..dfcf144545 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -4,7 +4,7 @@ ;;; Copyright © 2018, 2019, 2020, 2021 Efraim Flashner ;;; Copyright © 2019 by Amar Singh ;;; Copyright © 2020 R Veera Kumar -;;; Copyright © 2020 Guillaume Le Vaillant +;;; Copyright © 2020, 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. @@ -792,6 +792,39 @@ provide you with detailed information about each pass.") (home-page "http://gpredict.oz9aec.net/index.php") (license license:gpl2+))) +(define-public sgp4 + ;; No tagged releases, use commit directly. + (let ((commit "ca9d4d97af4ee62461de6f13e0c85d1dc6000040") + (revision "1")) + (package + (name "sgp4") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dnwrnr/sgp4") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xwfa6papmd2qz5w0hwzvijmzvp9np8dlw3q3qz4bmsippzjv8p7")))) + (build-system cmake-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + ;; Tests fails, probably because of a few "(e <= -0.001)" errors. + ;; Or maybe this is not the right way to run the tests? + ;; (invoke "runtest/runtest") + #t))))) + (home-page "https://github.com/dnwrnr/sgp4") + (synopsis "Simplified perturbations models library") + (description + "This is a library implementing the simplified perturbations model. +It can be used to calculate the trajectory of satellites.") + (license license:asl2.0)))) + (define-public indi (package (name "indi")