[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: Add python-miniupnpc
From: |
guix-commits |
Subject: |
branch master updated: gnu: Add python-miniupnpc |
Date: |
Tue, 15 Feb 2022 17:13:55 -0500 |
This is an automated email from the git hooks/post-receive script.
ngz pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 52269e27c6 gnu: Add python-miniupnpc
52269e27c6 is described below
commit 52269e27c628d34af896e95347870b1755cb3e5f
Author: Stephen Paul Weber <singpolyma@singpolyma.net>
AuthorDate: Wed Feb 9 09:57:08 2022 -0500
gnu: Add python-miniupnpc
* gnu/packages/python-xyz.scm (python-miniupnpc): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9a7b2d3890..9478b8a2bc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -229,6 +229,7 @@
#:use-module (gnu packages serialization)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix hg-download)
#:use-module (guix gexp)
@@ -3156,6 +3157,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
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'subdir
+ (lambda* (#:key inputs #:allow-other-keys)
+ (chdir "miniupnpc")
+ (setenv "CC" #$(cc-for-target))
+ (substitute* "Makefile"
+ (("/bin/sh") (search-input-file inputs "/bin/sh"))))))))
+ (inputs (list python)) ;we are building a Python extension
+ (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")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: Add python-miniupnpc,
guix-commits <=