From: Stephen Paul Weber <singpolyma@singpolyma.net>
To: 51676@debbugs.gnu.org
Cc: Stephen Paul Weber <singpolyma@singpolyma.net>
Subject: [bug#51676] [PATCH v3] gnu: Add python-miniupnpc
Date: Wed, 9 Feb 2022 09:57:08 -0500 [thread overview]
Message-ID: <20220209145708.31704-1-singpolyma@singpolyma.net> (raw)
In-Reply-To: <20211108034117.69082-1-singpolyma@singpolyma.net>
* gnu/packages/python-xyz.scm (python-miniupnpc): New variable.
---
gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 537a2eef35..dccaa7b103 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3156,6 +3156,41 @@ server.")
"@code{pafy} is a python library to retrieve YouTube content and metadata.")
(license license:lgpl3+)))
+(define-public python-miniupnpc
+ (package
+ (name "python-miniupnpc")
+ (version "2.2.3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/miniupnp/miniupnp")
+ (commit
+ (string-append
+ "miniupnpc_" (string-replace-substring version "." "_")))))
+ (file-name
+ (git-file-name name version))
+ (sha256
+ (base32 "03q1rlzvfzm15g1bfw2zqzavlsyaypnaf2k3cz6ha7k5rirkdy0l"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'subdir
+ (lambda _
+ (chdir "miniupnpc")
+ (setenv "CC" ,(cc-for-target))
+ (substitute* "Makefile"
+ (("/bin/sh") (which "bash"))))))))
+ (inputs (list python)) ; We are building a Python extension.
+ (native-inputs (list which))
+ (synopsis "UPnP client for Python")
+ (description "Miniupnpc is a client library for Python programs to set up
+port forwards using @acronym{UPnP, Universal Plug and Play}.")
+ (home-page "http://miniupnp.free.fr")
+ (license license:bsd-3)))
+
(define-public python2-funcsigs
(package
(name "python2-funcsigs")
--
2.30.2
next prev parent reply other threads:[~2022-02-09 15:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-08 3:41 [bug#51676] [PATCH] gnu: Add python-miniupnpc Stephen Paul Weber
2021-11-17 15:33 ` Ludovic Courtès
2022-01-14 1:09 ` [bug#51676] [PATCH v2] " Stephen Paul Weber
2022-02-09 14:07 ` Xinglu Chen
2022-02-09 14:57 ` Stephen Paul Weber [this message]
2022-02-15 22:13 ` bug#51676: [PATCH v3] " Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220209145708.31704-1-singpolyma@singpolyma.net \
--to=singpolyma@singpolyma.net \
--cc=51676@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.