guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[wip] Add python-gst. (Needs help!)


From: Christopher Allan Webber
Subject: [wip] Add python-gst. (Needs help!)
Date: Tue, 23 Feb 2016 12:38:07 -0800
User-agent: mu4e 0.9.13; emacs 24.5.1

This is the last piece of the puzzle to get all tests passing with
MediaGoblin and its Python dependencies, I believe.

Unfortunately, I can't get the package quite right.  Here's where it
fails:

Making install in overrides
make[2]: Entering directory 
'/tmp/guix-build-gst-python-1.6.1.drv-0/gst-python-1.6.1/gi/overrides'
make[3]: Entering directory 
'/tmp/guix-build-gst-python-1.6.1.drv-0/gst-python-1.6.1/gi/overrides'
 /gnu/store/nl4g5nzfdy6fad6i1zgxp1gin5c73b47-coreutils-8.24/bin/mkdir -p 
'/gnu/store/612jc932fk766brficmv11ddvgck6qgc-python-pygobject-3.18.0/lib/python3.4/site-packages/gi/overrides'
 /gnu/store/x8dmdlrn5qn0wrbcnngj55y3ab73h0pp-bash-4.3.42/bin/bash ../../libtool 
  --mode=install 
/gnu/store/nl4g5nzfdy6fad6i1zgxp1gin5c73b47-coreutils-8.24/bin/install -c   
_gi_gst.la 
'/gnu/store/612jc932fk766brficmv11ddvgck6qgc-python-pygobject-3.18.0/lib/python3.4/site-packages/gi/overrides'
libtool: install: 
/gnu/store/nl4g5nzfdy6fad6i1zgxp1gin5c73b47-coreutils-8.24/bin/install -c 
.libs/_gi_gst.cpython-34m.so 
/gnu/store/612jc932fk766brficmv11ddvgck6qgc-python-pygobject-3.18.0/lib/python3.4/site-packages/gi/overrides/_gi_gst.cpython-34m.so
/gnu/store/nl4g5nzfdy6fad6i1zgxp1gin5c73b47-coreutils-8.24/bin/install: cannot 
create regular file 
'/gnu/store/612jc932fk766brficmv11ddvgck6qgc-python-pygobject-3.18.0/lib/python3.4/site-packages/gi/overrides/_gi_gst.cpython-34m.so':
 Permission denied
Makefile:428: recipe for target 'install-pygioverridesexecLTLIBRARIES' failed

So, no surprise that this fails... it's trying to install to another
package in the store.

There must be another way we do this for other gobject introspect using
packages?  Could someone help me out please?  I'd appreciate it!

 - Chris

>From b324b6771de4255343a954d436d8f60ed56fec85 Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <address@hidden>
Date: Tue, 23 Feb 2016 12:34:56 -0800
Subject: [PATCH] [wip] Add python-gst

---
 gnu/packages/gstreamer.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index f1dbc46..b061f46 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2014 John Darrington <address@hidden>
 ;;; Copyright © 2015 Sou Bunnbu <address@hidden>
 ;;; Copyright © 2015 Mark H Weaver <address@hidden>
+;;; Copyright © 2016 Christopher Allan Webber <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -35,6 +36,7 @@
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages libffi)
   #:use-module (gnu packages mp3)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pulseaudio)
@@ -316,3 +318,31 @@ distribution problems in some jurisdictions, e.g. due to 
patent threats.")
      "This GStreamer plugin supports a large number of audio and video
 compression formats through the use of the libav library.")
     (license gpl2+)))
+
+(define-public python-gst
+  (package
+    (name "python-gst")
+    (version "1.6.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://gstreamer.freedesktop.org/src/"; name "/"
+                    name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "1w84pmvzki8fza10b6bx5zf1xb3r9x0nrsgfvlisybpx30p37giw"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("python" ,python)
+       ("gstreamer" ,gstreamer)
+       ("libffi" ,libffi)
+       ("gobject-introspection" ,gobject-introspection)))
+    (propagated-inputs
+     `(("python-pygobject" ,python-pygobject)))
+    (home-page "https://gstreamer.freedesktop.org/modules/gst-python.html";)
+    (synopsis "GStreamer Python bindings supplement")
+    (description "GStreamer Python overrides for the 
gobject-introspection-based
+pygst bindings.")
+    (license lgpl2.0+)))
-- 
2.6.3


reply via email to

[Prev in Thread] Current Thread [Next in Thread]