gnu: Add python-miniupnpc

* gnu/packages/python-xyz.scm (python-miniupnpc): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Stephen Paul Weber 2022-02-09 09:57:08 -05:00 committed by Nicolas Goaziou
parent 6ec07f6b38
commit 52269e27c6
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -229,6 +229,7 @@ (define-module (gnu packages python-xyz)
#:use-module (gnu packages serialization) #:use-module (gnu packages serialization)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix gexp)
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix hg-download) #:use-module (guix hg-download)
#:use-module (guix gexp) #:use-module (guix gexp)
@ -3156,6 +3157,41 @@ (define-public python-pafy
"@code{pafy} is a python library to retrieve YouTube content and metadata.") "@code{pafy} is a python library to retrieve YouTube content and metadata.")
(license license:lgpl3+))) (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 (define-public python2-funcsigs
(package (package
(name "python2-funcsigs") (name "python2-funcsigs")