me
/
guix
Archived
1
0
Fork 0

gnu: Add python-miniupnpc

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

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
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
1 changed files with 36 additions and 0 deletions

View File

@ -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")