From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MNTHM6/qrGJH2QAAbAwnHQ (envelope-from ) for ; Fri, 17 Jun 2022 22:57:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EM67M6/qrGJtbAEAauVa8A (envelope-from ) for ; Fri, 17 Jun 2022 22:57:19 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 497B6396A4 for ; Fri, 17 Jun 2022 22:57:19 +0200 (CEST) Received: from localhost ([::1]:55690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2J1o-0006ab-Vv for larch@yhetil.org; Fri, 17 Jun 2022 16:57:17 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches From: Antero Mejr via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655499439; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CSNo/vVqozlm3qbX+7EppXC8hmYFUkkJsIYFqN78DAI=; b=tZjfg2pyHt6X7ZUPW7IRpwvHi9MRfq3cJHDS+Dbpc0gPI/DBorlW3WxErSKP18jE9pqzFd GzzwJBn9sr80EeHavmJAsmge4NKoFZP7vOPXCpOCEkd/Hh/mI4rBfjlae7Vq5gO3ojuiEa 1WZzhoRR9PAjK2Cd2MWL/sOHCjLRWkqYJTfGhIwk/sh8afNFFqQyp/nFD2nmAwICKZe7FG +iLzeHynyPm80fVFtOyuqiI3kvpD+F9S9MBRveRNK9dRVxLtxTqBn3K17N57xPmg4Md6yx KmktnOCa8X1L/8Hbg8wpZmV789u/EevjyC8sKSOJKYdghWZql1gHPz4kNdVJUg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655499439; a=rsa-sha256; cv=none; b=tbmNJ1wKDT3JIWn+2g5aQ2zPJOsD4VB0bWjVNc5FjPywDT0bpTppGqoEtymiR3V2IAmKd6 958TdC04a/2Fxzi41uIJ8JRp7qW3CnveJnE0fZPsigiWGmBMo/bFJO7f03Go/SkvM1+qs0 zv/ggkOerMXP5ImJpxBPqFYpQRuKEl/DJGEpt3J8s0KYO0Mh/+51ztBcJEXR1aKmJy25ak MVI0HLY8iSDDa3notH/norYAcu7VgJb8HWR7H6da82l8JYHteklFXhN19Uk4ODMXhgNMht zBhnpDBnUwG29yDLeAd3xH0yhh97m0wUK79NbX5UJVXe66+V/Ej0fKVhamXmMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=ALVAJPeK; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=ALVAJPeK; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 497B6396A4 X-Spam-Score: -4.99 X-Migadu-Scanner: scn0.migadu.com X-TUID: zzTvJQ3KjQ0H * 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))) -- 2.36.1