From patchwork Fri Jun 17 20:55:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 40098 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 8CA0A27BBEA; Fri, 17 Jun 2022 21:57:17 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 0A77727BBE9 for ; Fri, 17 Jun 2022 21:57:17 +0100 (BST) Received: from localhost ([::1]:55690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2J1n-0006ab-W8 for patchwork@mira.cbaines.net; Fri, 17 Jun 2022 16:57:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2J1a-0006aQ-3q for guix-patches@gnu.org; Fri, 17 Jun 2022 16:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53193) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2J1Z-0002g9-R0 for guix-patches@gnu.org; Fri, 17 Jun 2022 16:57:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o2J1Z-0000sK-QG for guix-patches@gnu.org; Fri, 17 Jun 2022 16:57:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56044] [PATCH] gnu: Add simpleitk. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 17 Jun 2022 20:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56044 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56044@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16554993783304 (code B ref -1); Fri, 17 Jun 2022 20:57:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jun 2022 20:56:18 +0000 Received: from localhost ([127.0.0.1]:47086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2J0r-0000rE-MJ for submit@debbugs.gnu.org; Fri, 17 Jun 2022 16:56:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:34950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2J0o-0000r5-MV for submit@debbugs.gnu.org; Fri, 17 Jun 2022 16:56:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2J0o-0006Y6-Eg for guix-patches@gnu.org; Fri, 17 Jun 2022 16:56:14 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:60210) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1o2J0l-0002bM-Cw for guix-patches@gnu.org; Fri, 17 Jun 2022 16:56:14 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4LPrtB2X7pz9sT0 for ; Fri, 17 Jun 2022 22:56:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1655499362; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=CSNo/vVqozlm3qbX+7EppXC8hmYFUkkJsIYFqN78DAI=; b=ALVAJPeK5JIyfHsuEN/pt7VEv/gE9CglmOQ0VKe+JUHjQvDe0nUu/RowML9hlCzbU7hOli mnHh7jhLIdV+4E74CSP+q+Y1rQ3mN2kU1e+2nomT4ggHDfVG0tJwPfa/Z+oB8kM1jHkM9u dJa0zL6yPKHzVYNeIpmRNktcbprsvAdSj/JvKsVbWpl09vILueSL1CHwPnosGGsAta53oQ NxZvlKK4wQ0OvzIusewdJA1vN4q15aWlrh5VTekIFl+e0lnHy7x1Qwj4m77LIFd5lbcTTh vMkHuO1f1Rjv2KTQdahqKUN8FjdJjxO2QMVU9hTv2Tpd75UvKtl1RZTKgo/g2g== Date: Fri, 17 Jun 2022 20:55:55 +0000 Message-Id: <20220617205555.32238-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-ID: 6f934e492167ca7292a X-MBO-RS-META: 8akw99qzfusuud7uy5b5xn8ufrath3ao Received-SPF: pass client-ip=80.241.56.171; envelope-from=antero@mailbox.org; helo=mout-p-201.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr X-getmail-retrieved-from-mailbox: Patches * gnu/packages/image-processing.scm (simpleitk): New variable. --- gnu/packages/image-processing.scm | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 0c25b41dad..2c0141696b 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Ivan Gankevich ;;; Copyright © 2022 Maxim Cournoyer +;;; Copyright © 2022 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -72,6 +73,7 @@ (define-module (gnu packages image-processing) #:use-module (gnu packages image) #:use-module (gnu packages imagemagick) #:use-module (gnu packages linux) + #:use-module (gnu packages lua) #:use-module (gnu packages maths) #:use-module (gnu packages pdf) #:use-module (gnu packages perl) @@ -84,6 +86,7 @@ (define-module (gnu packages image-processing) #:use-module (gnu packages qt) #:use-module (gnu packages serialization) #:use-module (gnu packages sqlite) + #:use-module (gnu packages swig) #:use-module (gnu packages tbb) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) @@ -1372,3 +1375,41 @@ (define-public labelme "Image and video labeling tool supporting different shapes like polygons, rectangles, circles, lines, points and VOC/COCO export.") (license license:gpl3+))) + +(define-public simpleitk + (package + (name "simpleitk") + (version "2.1.1.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/SimpleITK/SimpleITK") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1dgwl6pp2hw0rsr5f7xahic3whd6py3rmgg645v450c0vwih6vjj")))) + (build-system cmake-build-system) + (arguments + (list #:tests? #f ;fetches external test data from network + #:configure-flags + #~(list (string-append "-DITK_DIR=" #$insight-toolkit) + "-DBUILD_TESTING=OFF" + "-DBUILD_EXAMPLES=OFF" + "-DBUILD_SHARED_LIBS=ON") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-testing-cmake + (lambda _ + (substitute* "Testing/Unit/CMakeLists.txt" + (("add_subdirectory\\(TestBase\\)") + "find_package(GTest REQUIRED) +include_directories(${GTEST_INCLUDE_DIR}) +add_subdirectory(TestBase)"))))))) + (native-inputs (list googletest swig)) + (inputs (list insight-toolkit hdf5 lua)) + (home-page "https://simpleitk.org/") + (synopsis "Simplified interfaces to the ITK image processing toolkit") + (description "SimpleITK is a simplified interface to the Insight Toolkit +(ITK) for image registration and segmentation.") + (license license:asl2.0)))