From patchwork Thu Jul 20 17:13:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Timotej Lazar X-Patchwork-Id: 51864 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 B4FCF27BBEA; Thu, 20 Jul 2023 18:15:26 +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=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 1478227BBE9 for ; Thu, 20 Jul 2023 18:15:26 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMXF3-0006Yi-Tk; Thu, 20 Jul 2023 13:15:05 -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 1qMXF2-0006YT-R4 for guix-patches@gnu.org; Thu, 20 Jul 2023 13:15:04 -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 1qMXF2-0001jq-Iu for guix-patches@gnu.org; Thu, 20 Jul 2023 13:15:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMXF0-0008QH-0H; Thu, 20 Jul 2023 13:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64747] [PATCH] gnu: Add python-pynetbox. Resent-From: Timotej Lazar Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Thu, 20 Jul 2023 17:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64747 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64747@debbugs.gnu.org Cc: Timotej Lazar , Lars-Dominik Braun , jgart X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Lars-Dominik Braun , jgart Received: via spool by submit@debbugs.gnu.org id=B.168987325532302 (code B ref -1); Thu, 20 Jul 2023 17:15:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Jul 2023 17:14:15 +0000 Received: from localhost ([127.0.0.1]:59766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMXEE-0008Ow-T9 for submit@debbugs.gnu.org; Thu, 20 Jul 2023 13:14:15 -0400 Received: from lists.gnu.org ([2001:470:142::17]:53834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMXED-0008Ok-Dd for submit@debbugs.gnu.org; Thu, 20 Jul 2023 13:14:13 -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 1qMXE8-0005gq-4C for guix-patches@gnu.org; Thu, 20 Jul 2023 13:14:08 -0400 Received: from araneo.si ([194.195.87.103] helo=localhost) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMXE6-0001cX-H8 for guix-patches@gnu.org; Thu, 20 Jul 2023 13:14:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=20230712; bh=gFd5cFwpt8n eazLr44r2CTsTnvPIBaeXEcNX+iLW/rE=; h=date:subject:cc:to:from; d=araneo.si; b=ammpohumC+ZJe47frgVzIiWQ8zK3OMcLFi0K4i4Rf0kGw9rWciP4I3G TDEVpT0IcWjBkBQflzFWh48PSR+C/p0tYncCsAACGyqIwJZmwjFClyC3Itt4rk4aYMQPNW HZS4fjUobAGcUR1vZSGhU4MzfXZ+yqW+/jr9dhLAPpipP0= Received: by araneo.si (OpenSMTPD) with ESMTPSA id faf8aed1 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 20 Jul 2023 17:14:02 +0000 (UTC) From: Timotej Lazar Date: Thu, 20 Jul 2023 19:13:48 +0200 Message-ID: <70f18c6352132594189e45021e5b0f31bc0d86cf.1689873228.git.timotej.lazar@araneo.si> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=194.195.87.103; envelope-from=timotej.lazar@araneo.si; helo=localhost X-Spam_score_int: 17 X-Spam_score: 1.7 X-Spam_bar: + X-Spam_report: (1.7 / 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, FSL_HELO_NON_FQDN_1=0.001, HELO_LOCALHOST=3.828, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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-web.scm (python-pynetbox): New variable. --- gnu/packages/python-web.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) base-commit: 21b718f4d6c3ded8ef50d12f6e9ae6474f74620f diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 6f855a503b..bce7fbd0e8 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -8686,3 +8686,28 @@ (define-public python-enoslib scientific testbeds. It lets you deploy networks of machines on actual hardware on Grid'5000 or via OpenStack, to Vagrant, Chameleon, and more.") (license license:gpl3+))) + +(define-public python-pynetbox + (package + (name "python-pynetbox") + (version "7.0.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "pynetbox" version)) + (sha256 + (base32 + "16ps9zgcjzyzn95lry277741i8php4ci3plsyd2vqxd57havba7b")))) + (build-system pyproject-build-system) + (arguments + (list #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'disable-failing-tests + (lambda _ + ;; Integration tests depend on docker. + (delete-file-recursively "tests/integration")))))) + (propagated-inputs (list python-requests)) + (native-inputs (list python-pytest python-pyyaml python-setuptools-scm)) + (home-page "https://github.com/netbox-community/pynetbox") + (synopsis "NetBox API client library") + (description "Python module to query and edit data stored in a +@url{https://netbox.dev,NetBox} instance.") + (license license:asl2.0)))