diff options
author | Stephen Paul Weber <singpolyma@singpolyma.net> | 2022-02-09 09:57:08 -0500 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2022-02-15 23:13:02 +0100 |
commit | 52269e27c628d34af896e95347870b1755cb3e5f (patch) | |
tree | 9d43194e830f4ccf476c934c74b06a9e7a6bd64b /gnu/packages | |
parent | 6ec07f6b38f8839f837590823f181a37b016c6b0 (diff) | |
download | guix-52269e27c628d34af896e95347870b1755cb3e5f.tar.gz |
gnu: Add python-miniupnpc
* gnu/packages/python-xyz.scm (python-miniupnpc): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/python-xyz.scm | 36 |
1 files changed, 36 insertions, 0 deletions
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") |