From patchwork Sun Oct 8 23:40:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 54615 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 4008127BBF2; Sun, 8 Oct 2023 21:42:51 +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=ham 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 11AE227BBF7 for ; Sun, 8 Oct 2023 21:42:31 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qpab5-0001sT-IF; Sun, 08 Oct 2023 16:41:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qpaax-0001op-Dc for guix-patches@gnu.org; Sun, 08 Oct 2023 16:41:47 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qpaaw-0005pU-W5 for guix-patches@gnu.org; Sun, 08 Oct 2023 16:41:47 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qpabF-0003BC-6J; Sun, 08 Oct 2023 16:42:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66412] [PATCH 09/20] gnu: python-drizzle: Update package style. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, efraim@flashner.co.il, bavier@posteo.net, guix-patches@gnu.org Resent-Date: Sun, 08 Oct 2023 20:42:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66412 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66412@debbugs.gnu.org Cc: Sharlatan Hellseher , Andreas Enge , Efraim Flashner , Eric Bavier X-Debbugs-Original-Xcc: Andreas Enge , Efraim Flashner , Eric Bavier Received: via spool by 66412-submit@debbugs.gnu.org id=B66412.169679767511980 (code B ref 66412); Sun, 08 Oct 2023 20:42:05 +0000 Received: (at 66412) by debbugs.gnu.org; 8 Oct 2023 20:41:15 +0000 Received: from localhost ([127.0.0.1]:58640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpaaQ-00036y-HL for submit@debbugs.gnu.org; Sun, 08 Oct 2023 16:41:15 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:60606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qpaaM-00034m-DA for 66412@debbugs.gnu.org; Sun, 08 Oct 2023 16:41:10 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-405361bb94eso38805185e9.0 for <66412@debbugs.gnu.org>; Sun, 08 Oct 2023 13:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696797644; x=1697402444; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=471s5UOgUlFELAoUlVM6wbLoC+X6sm6Mz0GCvVJ4+rk=; b=IgxA9YsSMlkpAwwrRE8gRxoE8lzKkLThbrUg1y/8TpXZajD5XRD49Lbp1qFaA1P4gg hGLJXx1toKFyleOm1edjzx42GFjQuaR0L4GdS9zrQHH7RnkWhsxkH+xClW3AXBnnmqVr GmpbV1N/27CTcwyyBnrlCys4dZgxQqoYnaL1GYQwHzc6z+7oWDxtQumH6XJiZnrQamly HnO9JoOwMFPZqpjgxWAA1VnVueuBnIb+h5nL4AwhhFueS0bUEeIjXCp8ZDGm5iDLqZMX 0/jrnbnxKGeLDXObtCQt03+ni1N8XZrgPYietvrfoOeBgA5827ID7U52SEL4ifwn+Llk 41Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696797644; x=1697402444; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=471s5UOgUlFELAoUlVM6wbLoC+X6sm6Mz0GCvVJ4+rk=; b=cadG2A1kwMJAxgUjJRaN8Lb54Eh/l2NeIGoMvSlJAtnoL8ucvRTjnFgXenMII5vDZ9 0Mr/hU2CqJ82r9H1UEgrke+gnp3TLDCB04wEDUAkUGNjbdBJeNLO438xXhWuRxK9XRna VLnGaAY8OjqSIjHpjXvs1cwAAVPMUeV99Ovw8fOOB2csKkWRTay+8Qwplqq/jL9eYMjY xqOJfLomuNAsQaeW8338P60zo062eSLSix39Ups7Yw9V7wpOaS6kx/un7nXMFIwvb8dO 7pjmbk6iSsmnSLLJF1r2JqDAz1BUKEGMM9Jdt/DSnrvMW2aV9f6ZQa7akGltszhVEfFi oUmQ== X-Gm-Message-State: AOJu0YwnQ5GZnv2S3+HhdIGaTl0HyNMBNyegECDH2sMH5auQZuUo6mIy poPZanVohWmPISVXdhVtqUYiLBXEn3J8fQ== X-Google-Smtp-Source: AGHT+IHVjk0JgkKJyxPvxlgXxbSHUo3aZNuR/pe1ctSA54/vF57Ujh/HbIlg8dRHUfoESu9VyR47HA== X-Received: by 2002:a05:600c:2154:b0:401:519:c9 with SMTP id v20-20020a05600c215400b00401051900c9mr12066818wml.13.1696797644361; Sun, 08 Oct 2023 13:40:44 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id a4-20020a05600c224400b003fe2b081661sm11608006wmm.30.2023.10.08.13.40.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 13:40:44 -0700 (PDT) From: Sharlatan Hellseher Date: Mon, 9 Oct 2023 00:40:11 +0100 Message-ID: <67e76911baa69cb02401916c6ffb430f73c5e799.1696804840.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/astronomy.scm (python-drizzle): Update package style, indent and align regions. [arguments]{test-flags}: Remove them as all tests are passed successfully. [native-inputs]: Remove python-coverage, python-pytest-cov. [description]: Indent region. --- gnu/packages/astronomy.scm | 63 ++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 34 deletions(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 2569cedd02..e7ee63dcb8 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1858,47 +1858,42 @@ (define-public python-drizzle (package (name "python-drizzle") (version "1.14.3") - (source (origin - (method git-fetch) ;PyPi doesn't have the test data sets - (uri (git-reference - (url "https://github.com/spacetelescope/drizzle") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "04gncwg76yivcaq7rwgsw5k8w4h3c4wcrjcamb53h0d5s820z7dl")))) + (source + (origin + (method git-fetch) ;PyPi doesn't have the test data sets + (uri (git-reference + (url "https://github.com/spacetelescope/drizzle") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04gncwg76yivcaq7rwgsw5k8w4h3c4wcrjcamb53h0d5s820z7dl")))) (build-system pyproject-build-system) (arguments (list - ;; XXX: 2 of 26 tests failed with AssertionError, disable them for now. - ;; Consider mention it in upstream. - #:test-flags #~(list "-k" - (string-append "not test_square_with_point" - " and not test_square_with_grid")) - #:phases #~(modify-phases %standard-phases - (add-before 'build 'set-env-version - (lambda _ - (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" - #$version))) - (add-before 'check 'build-extensions - (lambda _ - ;; Cython extensions have to be built before running - ;; the tests. - (invoke "python" "setup.py" "build_ext" "--inplace")))))) - (propagated-inputs (list python-astropy python-numpy)) - (native-inputs (list python-coverage python-flake8 python-pytest - python-pytest-cov python-setuptools-scm)) + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'set-env-version + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) + (add-before 'check 'build-extensions + (lambda _ + ;; Cython extensions have to be built before running the tests. + (invoke "python" "setup.py" "build_ext" "--inplace")))))) + (propagated-inputs + (list python-astropy python-numpy)) + (native-inputs + (list python-flake8 python-pytest python-setuptools-scm)) (home-page "https://github.com/spacetelescope/drizzle") (synopsis "Astronomical tool for combining dithered images into a single image") (description - "The drizzle library is a Python package for combining dithered images into -a single image. This library is derived from code used in DrizzlePac. Like -DrizzlePac, most of the code is implemented in the C language. The biggest -change from DrizzlePac is that this code passes an array that maps the input to -output image into the C code, while the DrizzlePac code computes the mapping by -using a Python callback. Switching to using an array allowed the code to be -greatly simplified.") + "The drizzle library is a Python package for combining dithered images +into a single image. This library is derived from code used in DrizzlePac. +Like DrizzlePac, most of the code is implemented in the C language. The +biggest change from DrizzlePac is that this code passes an array that maps the +input to output image into the C code, while the DrizzlePac code computes the +mapping by using a Python callback. Switching to using an array allowed the +code to be greatly simplified.") (license license:bsd-3))) (define-public python-ephem