From patchwork Sun Nov 13 05:43:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TcSDZMSDbGluIElvbmVsIFBhdHJhyJljdQ==?= X-Patchwork-Id: 44492 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 62E0627BBEB; Sun, 13 Nov 2022 05:44:11 +0000 (GMT) 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=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 0D5C327BBE9 for ; Sun, 13 Nov 2022 05:44:10 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ou5mp-0003j0-8i; Sun, 13 Nov 2022 00:44:07 -0500 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 1ou5ml-0003id-8S for guix-patches@gnu.org; Sun, 13 Nov 2022 00:44:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ou5mk-0003Tm-Td for guix-patches@gnu.org; Sun, 13 Nov 2022 00:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ou5mk-0004JI-Ff; Sun, 13 Nov 2022 00:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59239] [PATCH] gnu: Add python-synapseclient. Resent-From: =?utf-8?b?TcSDZMSDbGlu?= Ionel =?utf-8?b?UGF0cmHImWN1?= Original-Sender: "Debbugs-submit" Resent-CC: rekado@elephly.net, guix-patches@gnu.org Resent-Date: Sun, 13 Nov 2022 05:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59239 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59239@debbugs.gnu.org Cc: rekado@elephly.net X-Debbugs-Original-To: X-Debbugs-Original-Xcc: rekado@elephly.net Received: via spool by submit@debbugs.gnu.org id=B.166831822216532 (code B ref -1); Sun, 13 Nov 2022 05:44:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Nov 2022 05:43:42 +0000 Received: from localhost ([127.0.0.1]:49851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ou5mP-0004Ia-Jp for submit@debbugs.gnu.org; Sun, 13 Nov 2022 00:43:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:54118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ou5mO-0004IS-2b for submit@debbugs.gnu.org; Sun, 13 Nov 2022 00:43:40 -0500 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 1ou5mN-0003hm-Tf for guix-patches@gnu.org; Sun, 13 Nov 2022 00:43:39 -0500 Received: from b2062.mx.srv.dfn.de ([194.95.234.172]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ou5mL-0003NU-BG for guix-patches@gnu.org; Sun, 13 Nov 2022 00:43:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-type:content-type:content-transfer-encoding:mime-version :x-mailer:message-id:date:date:subject:subject:from:from :received; s=mdc; t=1668318203; x=1670132604; bh=ywAcjqhs3BPfFEz lY3JXIEl6d7jXUdr53a3LPatCFlw=; b=dsav+nicjgHyQlW1cSUb+vhV//YzBoq AyhmJrqW9zM/aHsOj9yDgiZPOdnmMduaYbjzmWfU6b/hBwPqsLT9V+HwTcJfP/73 W9A1MCeN0Q8UH+H4TTBpqT9b/MoHhE3bqucoSQQ3He3T3JFpZPlPL3R/9sPA5YG9 auC7poNE6Ez8= Received: from SW-IT-P-EX4.mdc-berlin.net (mgw4.mdc-berlin.de [141.80.113.62]) by b2062.mx.srv.dfn.de (Postfix) with ESMTPS id 6F2D61602A3 for ; Sun, 13 Nov 2022 06:43:23 +0100 (CET) Received: from Guix-Ubuntu18.04 (141.80.113.106) by SW-IT-P-EX4.mdc-berlin.net (141.80.113.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.13; Sun, 13 Nov 2022 06:43:22 +0100 From: =?utf-8?b?TcSDZMSDbGlu?= Ionel =?utf-8?b?UGF0cmHImWN1?= Date: Sun, 13 Nov 2022 06:43:08 +0100 Message-ID: <20221113054308.5582-1-madalinionel.patrascu@mdc-berlin.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Originating-IP: [141.80.113.106] X-ClientProxiedBy: SW-IT-P-EX3.mdc-berlin.net (141.80.113.61) To SW-IT-P-EX4.mdc-berlin.net (141.80.113.62) X-TM-AS-Product-Ver: SMEX-14.0.0.3092-9.0.1002-27260.005 X-TM-AS-Result: No-10--8.373000-5.000000 X-TMASE-MatchedRID: u+bDrN2E+3v/R1NSMc2qCU7nLUqYrlslFIuBIWrdOeOjEIt+uIPPOAbo TDS3zulAric7Gwt0xr7DRMIc9/eC4F0ieHN50/kHxi///JpaHQNGmC2qcPUEPu55sqsU0mRFgju zl/ha2817C7/RLfO+aL1Euivo0hwLeCZrJIofIYaOjIrMSa2sR9hQO8CvZj/XpKG9GN+fhxS+6Y UxHdZpEQwwnhrS9TCamDxSncsvBzagOUOBLqPMtHAqViM7NdjVPAxIUC0bmYyKtcrCRXmudyP+F D9UJZFvF9I3HgybRyF+lccVhYJB16PFjJEFr+olwXCBO/GKkVr3FLeZXNZS4KBkcgGnJ4Wmj+8y TjWnpuPhaR5uSvkxZP4x5V8jXZhWhbRxrJbS4zV+3BndfXUhXQ== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--8.373000-5.000000 X-TMASE-Version: SMEX-14.0.0.3092-9.0.1002-27260.005 X-TM-SNTS-SMTP: 1ABF11DB8B0E16B12E1283D5757A1272E2353AA1BDC5FDB88DBE400D5FA30D312002:F Received-SPF: pass client-ip=194.95.234.172; envelope-from=MadalinIonel.Patrascu@mdc-berlin.de; helo=b2062.mx.srv.dfn.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-synapseclient): New variable. --- gnu/packages/python-xyz.scm | 60 +++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) base-commit: c4025af8c11c3e9ea0c2747b6c475c916fb61d80 diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e26656fa32..b599a2e4ed 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -10383,6 +10383,66 @@ (define-public python-sympy as possible in order to be comprehensible and easily extensible.") (license license:bsd-3))) +(define-public python-synapseclient + (package + (name "python-synapseclient") + (version "2.7.0") + (source (origin + ;; git version contains tests + (method git-fetch) + (uri (git-reference + (url + "https://github.com/Sage-Bionetworks/synapsePythonClient") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0v2yyjpmxlxmbn1xbxzx1l1bs45ir9p4i51dlf847irnrrmifxcd")))) + ;;(method url-fetch) + ;;(uri (pypi-uri "synapseclient" version)) + ;;(sha256 + ;; (base32 + ;; "1g2n5bbq5vkvprk4ap3sbz2q39cjwl8igy3krlskg34c1q7if7r4")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'relax-version-requirements + (lambda _ + (substitute* "setup.py" + (("keyring>=15,<23\\.5") "keyring>=15") + (("keyrings\\.alt==3\\.1") "keyrings.alt>=3.1")))) + (add-before 'build 'set-homeless-shelter + (lambda _ + ;; could not create '/homeless-shelter': Permission denied + (setenv "HOME" "/tmp"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; these tests require server authentification SynapseNoCredentialsError + (delete-file-recursively "tests/integration/synapseclient") + (delete-file-recursively "tests/integration/synapseutils") + (invoke "pytest"))))))) + (propagated-inputs + (list python-deprecated + python-keyring + python-keyrings.alt + python-requests)) + (native-inputs + (list python-boto3 + python-flake8-3.8 + python-pandas + python-psutil + python-pytest + python-pytest-mock + python-pytest-xdist-next)) + (home-page "https://www.synapse.org") + (synopsis "Client for Synapse, a collaborative compute space") + (description + "This package provides a client for @code{Synapse}, a collaborative compute +space that allows scientists to share and analyze data together.") + (license license:asl2.0))) + (define-public python-q (package (name "python-q")