From patchwork Fri Jul 29 20:29:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 41056 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 3751E27BBEA; Fri, 29 Jul 2022 21:31:34 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B4A2127BBE9 for ; Fri, 29 Jul 2022 21:31:33 +0100 (BST) Received: from localhost ([::1]:57544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHWdw-0003Wa-Tb for patchwork@mira.cbaines.net; Fri, 29 Jul 2022 16:31:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHWdS-0003WH-VE for guix-patches@gnu.org; Fri, 29 Jul 2022 16:31:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHWdS-0004Qt-JI for guix-patches@gnu.org; Fri, 29 Jul 2022 16:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHWdS-0001Al-CT for guix-patches@gnu.org; Fri, 29 Jul 2022 16:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56835] [PATCH 1/2]: gnu: Add posic-ipc References: In-Reply-To: Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 Jul 2022 20:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56835 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56835@debbugs.gnu.org Received: via spool by 56835-submit@debbugs.gnu.org id=B56835.16591266094398 (code B ref 56835); Fri, 29 Jul 2022 20:31:02 +0000 Received: (at 56835) by debbugs.gnu.org; 29 Jul 2022 20:30:09 +0000 Received: from localhost ([127.0.0.1]:33543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHWcb-00018s-3x for submit@debbugs.gnu.org; Fri, 29 Jul 2022 16:30:09 -0400 Received: from mail-ed1-f54.google.com ([209.85.208.54]:45943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHWcX-00016d-3Y for 56835@debbugs.gnu.org; Fri, 29 Jul 2022 16:30:07 -0400 Received: by mail-ed1-f54.google.com with SMTP id p5so7098484edi.12 for <56835@debbugs.gnu.org>; Fri, 29 Jul 2022 13:30:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=dRaPos6k4crWiKiZY9sMtI6Yy906rRv7IvK7vbrBSHE=; b=BsVmpaMSXBk48fsiiOkenXkwEcC0M/D4IH+Z6b0urhEkh5KXIm1X9y839OWutuf1BZ Ahww7stNWzgUaPBZO6cnHcD0vmzxuBm8xvXYnfo/NmnZmhqjCbUUn8TZwelxwoMyYqPN gQAGZBeIpubp6MeiI1Iak9zfzAXQcSh/u2Blj5DnBZ12o8R9vdm4TNOJAaHFotE4/uKy lYz2vsxICv/C25XLbmyIu+Ij0Xzn0sGdcfWvUqdxS5M6379L5KG4L1zA9S2+naP3Mi6s 66LKQHfc86qVW1PaGqBc85vaOimFmeAu1vbBL0rVTokNJ+WOMoU7SOMmHr0WcXrytGXP WWUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=dRaPos6k4crWiKiZY9sMtI6Yy906rRv7IvK7vbrBSHE=; b=W2ZY4dPcvB0Kbnzu+6DEGGF8u3DizX9OQDq4jFQq1TQNYM2toe/WxjgypALFB9DV3g 2s3mBggGIcE2z+Tu2auesssvvXOi5CxSIQgKjr6gIQV4+nmRLgqMOW46NDjEVi7ICa68 YEgdyhtVGouYcfQMLzfClcdmSaP922hr9cKWPL9D8mi9gIMhAdzXAwowmu50yrLr4fGU bJZFQWi6RrJEsNfEhD97ka8loFwpGPn3PmwulHk5V74k302RpRJ0rzmUh7n4XAy5migW H8tkMdUDxI32zbScWhKW4xv3s64U+gzba345kyIKKKP/jCiFNyQZegw4043gHx8nSdzq X2PA== X-Gm-Message-State: AJIora+IItHzu6DS4mK/+6MnRCUOzVxv5UczmcLpnOOnkJ+xnqsrSqJu RJ3SbdM6y70ruejUVFj06txhTY4ZRj/ORSiRjW9ibtaj X-Google-Smtp-Source: AGRyM1uvxbTWlPm0Zx4TidbmdsLhJ2a50il4a1R/HVs8jx8WjuBqKkawAWu7XYYdxGqVhW8pTO2hhg4JQQFtqTm1BWM= X-Received: by 2002:a50:fc89:0:b0:43c:bf1e:165d with SMTP id f9-20020a50fc89000000b0043cbf1e165dmr5020145edq.161.1659126599176; Fri, 29 Jul 2022 13:29:59 -0700 (PDT) MIME-Version: 1.0 From: Sharlatan Hellseher Date: Fri, 29 Jul 2022 21:29:48 +0100 Message-ID: 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 -- … наш разум - превосходная объяснительная машина которая способна найти смысл почти в чем угодно, истолковать любой феномен, но совершенно не в состоянии принять мысль о непредсказуемости. From 8631e7afa40a752fe41cacc29a2a4c358a8a1746 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 29 Jul 2022 17:50:56 +0100 Subject: [PATCH 1/2] gnu: Add posix-ipc * gnu/packages/python-xyz.scm: (python-posix-ipc): New variable. --- gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ac7c0d6066..732cd2a376 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29590,6 +29590,38 @@ (define-public python-queuelib fashion.") (license license:bsd-3))) +(define-public python-posix-ipc + (package + (name "python-posix-ipc") + (version "1.0.5") + (source + (origin + ;; The source distributed on PyPI is prebuild. + (method git-fetch) + (uri (git-reference + (url "https://github.com/osvenskan/posix_ipc") + (commit (string-append "rel" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "17y4d0pmvp199c5hbs602ailhlh9f9zv89kmpbd8jhyl6rgaxsvs")))) + (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-cc-path + (lambda _ + (substitute* "prober.py" + (("cmd = .cc") + (string-append "cmd = \"" #$(cc-for-target))))))))) + (native-inputs + (list python-unittest2)) + (home-page "http://semanchuk.com/philip/posix_ipc/") + (synopsis "POSIX IPC primitives for Python") + (description + "This package provides POSIX IPC primitives - semaphores, shared memory and +message queues for Python.") + (license license:bsd-3))) ; BSD like Copyright (c) 2018, Philip Semanchuk + (define-public python-itemadapter (package (name "python-itemadapter") -- 2.36.1 From patchwork Fri Jul 29 20:30:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 41057 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 D572427BBEA; Fri, 29 Jul 2022 21:31:44 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4BF4F27BBE9 for ; Fri, 29 Jul 2022 21:31:44 +0100 (BST) Received: from localhost ([::1]:57790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oHWe7-0003na-G7 for patchwork@mira.cbaines.net; Fri, 29 Jul 2022 16:31:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oHWdT-0003WO-6u for guix-patches@gnu.org; Fri, 29 Jul 2022 16:31:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43799) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oHWdS-0004Qz-TW for guix-patches@gnu.org; Fri, 29 Jul 2022 16:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oHWdS-0001As-PM for guix-patches@gnu.org; Fri, 29 Jul 2022 16:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56835] [PATCH 2/2]: gnu: Add pynbody References: In-Reply-To: Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 Jul 2022 20:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56835 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56835@debbugs.gnu.org Received: via spool by 56835-submit@debbugs.gnu.org id=B56835.16591266354465 (code B ref 56835); Fri, 29 Jul 2022 20:31:02 +0000 Received: (at 56835) by debbugs.gnu.org; 29 Jul 2022 20:30:35 +0000 Received: from localhost ([127.0.0.1]:33547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHWd0-00019w-G2 for submit@debbugs.gnu.org; Fri, 29 Jul 2022 16:30:34 -0400 Received: from mail-ed1-f42.google.com ([209.85.208.42]:36519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oHWcv-00019Q-Q1 for 56835@debbugs.gnu.org; Fri, 29 Jul 2022 16:30:33 -0400 Received: by mail-ed1-f42.google.com with SMTP id c12so7135975ede.3 for <56835@debbugs.gnu.org>; Fri, 29 Jul 2022 13:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc; bh=kTa5baFqhdWKLceRPrY/o8lauSt9qkldqFrhYth9CLk=; b=eNpbnCC1xr2QMskSqWi2Q+lHBesBpM4U+vldHDQgx3rwTWXRcSqWVZrhVYj7rb5iGt Zd90Xm/ta4Zriugo7XVZuu9FYltB1+GcqWh2Cmp46hrhd1CcHgfAPNDU8UA2SsCj3Svs 8Vh/NyHztmb9GwPVsULpOFaj2Zdic03iJ+iWDDI0Nl7dO9McK3OzeXsWszqXDiwoB93K 2LZKA6rIaFssfRCErT+8rEEE4gmhQcaS1xL9SWZAXsWqgfcyj4WbSjwVvWebXb8V0grs 5tJ+3Si3kPO6MbKV7WDDeDmZgRwTQ4QbKHllf7EeqeKGgnBwygsec8VRnmbP4hAIucIA 3GSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc; bh=kTa5baFqhdWKLceRPrY/o8lauSt9qkldqFrhYth9CLk=; b=pawHBv5d+Rube6fhfBSO1mNDo8tni78lG/5X5mtAnSW1s4xqVOkTx3dqrumEp9KmrK FP0G4C8Ia4+amLz4Z6otyuDzsgEuROwB4UazvlOnKT1uWaBUJAOLXpMhd/9B/FHy9gtp YvbZHAoZtOjb6gSi1fjj6C3kSjHvvsvehqGWM3CYkErQ5zntLPGoeZVOCZ4UqinrUxaB 08L4w6RbjyD/sRd9CTfPqlxk6WKfPomel7ttd5+Ji5+vLgTT4L+/0ZCc2dJeYu8Xu822 gliV+ph6JglV0vsCF8QzScjBXLSBSDGt6uNw55+ig6FQGVTUeKBCOvVSK+JoCIPqZk/8 6mZA== X-Gm-Message-State: ACgBeo1qKmB3XRMeYbguALPJG0VCQ85jxKDwLZIOKgXuIKfJYzAVYwJk L/TPwac8fq7PAGoISyDHP1ubUqAxmoNijVhTrilKXRkj X-Google-Smtp-Source: AA6agR5LQSgOcNn0UrYUnaCp0r9SbUddTyuuBw9E/bEx+/XFXU4DfQHNVw9Fgrf1CaoY8FafskVBoUtMPQZVawbixLY= X-Received: by 2002:aa7:c983:0:b0:43d:3879:216b with SMTP id c3-20020aa7c983000000b0043d3879216bmr2194612edt.131.1659126624191; Fri, 29 Jul 2022 13:30:24 -0700 (PDT) MIME-Version: 1.0 From: Sharlatan Hellseher Date: Fri, 29 Jul 2022 21:30:13 +0100 Message-ID: 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 -- … наш разум - превосходная объяснительная машина которая способна найти смысл почти в чем угодно, истолковать любой феномен, но совершенно не в состоянии принять мысль о непредсказуемости. From d245a43520d37e33615d825338d1f55dda36fce2 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 29 Jul 2022 21:17:50 +0100 Subject: [PATCH 2/2] gnu: Add pynbody * gnu/packages/astronomy.scm: (python-pynbody): New variable. --- gnu/packages/astronomy.scm | 68 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index e84eb188ff..3b4ded5728 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1606,6 +1606,74 @@ (define-public python-pyerfa functions, so that they can be called with scalar or array inputs.") (license license:bsd-3))) +(define-public python-pynbody + (package + (name "python-pynbody") + (version "1.2.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pynbody" version)) + (sha256 + (base32 "1jxwk2s4qz1znvyak2lj7ld01kl1jh87xp81ki7a8dz1gcy93fkx")))) + (build-system python-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'disable-tests-require-testdata + (lambda _ + ;; Disable tests which need to download additional 1.0GiB+ + ;; of test data archive from + ;; http://star.ucl.ac.uk/~app/testdata.tar.gz + ;; https://github.com/pynbody/pynbody/blob/ \ + ;; f4bd482dc47532831b3ec115c7cb07149d61bfc5/ \ + ;; .github/workflows/build-test.yaml#L41 + (with-directory-excursion "tests" + (for-each delete-file + '("gravity_test.py" + "adaptahop_test.py" + "ahf_halos_test.py" + "array_test.py" + "bridge_test.py" + "family_test.py" + "partial_tipsy_test.py" + "snapshot_test.py" + "test_profile.py" + "gadget_test.py" + "gadgethdf_test.py" + "grafic_test.py" + "halotools_test.py" + "nchilada_test.py" + "ramses_new_ptcl_format_test.py" + "ramses_test.py" + "rockstar_test.py" + "sph_image_test.py" + "sph_smooth_test.py" + "subfind_test.py" + "subfindhdf_gadget4_test.py" + "tipsy_test.py"))))) + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (setenv "HOME" "/tmp") + (invoke "pytest" "-vv"))))))) + (native-inputs + (list python-pandas python-pytest)) + (propagated-inputs + (list python-cython + python-h5py + python-matplotlib + python-numpy + python-posix-ipc + python-scipy)) + (home-page "https://pynbody.github.io/pynbody/index.html") + (synopsis "Light-weight astronomical N-body/SPH analysis for python") + (description "@code{Pynbody} is an analysis framework for N-body and hydrodynamic +astrophysical simulations supporting PKDGRAV/Gasoline, Gadget, Gadget4/Arepo, +N-Chilada and RAMSES AMR outputs.") + (license license:gpl3+))) + (define-public python-sep (package (name "python-sep") -- 2.36.1