all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#44276] [PATCH] gnu: Add python-simpleaudio.
@ 2020-10-28  9:08 Tanguy Le Carrour
  2020-10-28 16:32 ` Leo Famulari
  2020-10-28 16:43 ` Leo Famulari
  0 siblings, 2 replies; 6+ messages in thread
From: Tanguy Le Carrour @ 2020-10-28  9:08 UTC (permalink / raw)
  To: 44276; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-simpleaudio): New variable.
---
 gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6c5ccac647..a60e869db8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1843,6 +1843,30 @@ after Andy Lester’s Perl module WWW::Mechanize.")
 (define-public python2-mechanize
   (package-with-python2 python-mechanize))
 
+(define-public python-simpleaudio
+  (package
+    (name "python-simpleaudio")
+    (version "1.0.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "simpleaudio" version))
+       (sha256
+        (base32
+         "07glihg0fpca0gvbbvqs9q815w8xhflzdvg72yvlsm23j9j8h739"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:tests? #f))
+    (native-inputs
+      `(("alsa-lib" ,alsa-lib)))
+    (home-page
+     "https://github.com/hamiltron/py-simple-audio")
+    (synopsis "Simple, asynchronous audio playback for Python 3")
+    (description
+     "The @code{simplaudio} package provides cross-platform, dependency-free
+audio playback capability for Python 3 on OSX, Windows, and Linux.")
+    (license license:expat))) ; MIT license
+
 (define-public python-simplejson
   (package
     (name "python-simplejson")
-- 
2.29.1





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#44276] [PATCH] gnu: Add python-simpleaudio.
  2020-10-28  9:08 [bug#44276] [PATCH] gnu: Add python-simpleaudio Tanguy Le Carrour
@ 2020-10-28 16:32 ` Leo Famulari
  2020-10-28 16:43 ` Leo Famulari
  1 sibling, 0 replies; 6+ messages in thread
From: Leo Famulari @ 2020-10-28 16:32 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 44276

On Wed, Oct 28, 2020 at 10:08:10AM +0100, Tanguy Le Carrour wrote:
> * gnu/packages/python-xyz.scm (python-simpleaudio): New variable.

Thanks! Pushed as 36c74e27a830cef8c63973f6a35138209dfd26ae




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#44276] [PATCH] gnu: Add python-simpleaudio.
  2020-10-28  9:08 [bug#44276] [PATCH] gnu: Add python-simpleaudio Tanguy Le Carrour
  2020-10-28 16:32 ` Leo Famulari
@ 2020-10-28 16:43 ` Leo Famulari
  2020-10-29  8:30   ` Tanguy Le Carrour
  1 sibling, 1 reply; 6+ messages in thread
From: Leo Famulari @ 2020-10-28 16:43 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 44276

[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]

On Wed, Oct 28, 2020 at 10:08:10AM +0100, Tanguy Le Carrour wrote:
> * gnu/packages/python-xyz.scm (python-simpleaudio): New variable.

> +    (native-inputs
> +      `(("alsa-lib" ,alsa-lib)))

After taking a closer look at the inputs in the pydub package, I noticed
that alsa-lib is a native-input; native-inputs are typically used only
while building the package.

The built package keeps a reference to alsa-lib:

------
$ guix gc --references $(./pre-inst-env guix build --no-grafts python-simpleaudio) | grep alsa-lib
/gnu/store/zcjdb23gbhl0pcnvvm8rnlprkfl43cv5-alsa-lib-1.2.2
$ grep -r alsa-lib $(./pre-inst-env guix build --no-grafts python-simpleaudio)         
Binary file /gnu/store/kaiww0wf6a7kqzrn9la681lmwmp2k26w-python-simpleaudio-1.0.4/lib/python3.8/site-packages/simpleaudio/_simpleaudio.cpython-38-x86_64-linux-gnu.so matches
------

Either the reference is used and should not be the "native alsa-lib" (in
terms of cross-compiling), or it's not used and we can remove the
reference after building. I think the first option is more likely.
Should I change it from a 'native-input' to an 'input'?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#44276] [PATCH] gnu: Add python-simpleaudio.
  2020-10-28 16:43 ` Leo Famulari
@ 2020-10-29  8:30   ` Tanguy Le Carrour
  2020-10-29 14:14     ` bug#44276: " Leo Famulari
  0 siblings, 1 reply; 6+ messages in thread
From: Tanguy Le Carrour @ 2020-10-29  8:30 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 44276

Hi Leo,


Le 10/28, Leo Famulari a écrit :
> On Wed, Oct 28, 2020 at 10:08:10AM +0100, Tanguy Le Carrour wrote:
> > * gnu/packages/python-xyz.scm (python-simpleaudio): New variable.
> 
> > +    (native-inputs
> > +      `(("alsa-lib" ,alsa-lib)))
> 
> After taking a closer look at the inputs in the pydub package, I noticed
> that alsa-lib is a native-input; native-inputs are typically used only
> while building the package.
> 
> The built package keeps a reference to alsa-lib:
> 
> ------
> $ guix gc --references $(./pre-inst-env guix build --no-grafts python-simpleaudio) | grep alsa-lib
> /gnu/store/zcjdb23gbhl0pcnvvm8rnlprkfl43cv5-alsa-lib-1.2.2
> $ grep -r alsa-lib $(./pre-inst-env guix build --no-grafts python-simpleaudio)         
> Binary file /gnu/store/kaiww0wf6a7kqzrn9la681lmwmp2k26w-python-simpleaudio-1.0.4/lib/python3.8/site-packages/simpleaudio/_simpleaudio.cpython-38-x86_64-linux-gnu.so matches
> ------
> 
> Either the reference is used and should not be the "native alsa-lib" (in
> terms of cross-compiling), or it's not used and we can remove the
> reference after building. I think the first option is more likely.
> Should I change it from a 'native-input' to an 'input'?

Way out of my comfort zone! ^_^'
Even if I think I get your point! `alsa-lib` is indeed used at run time.
So… do as you think is best! :-)

Thank again for your time and advice.

-- 
Tanguy




^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#44276: [PATCH] gnu: Add python-simpleaudio.
  2020-10-29  8:30   ` Tanguy Le Carrour
@ 2020-10-29 14:14     ` Leo Famulari
  2020-10-29 14:26       ` [bug#44276] " Tanguy Le Carrour
  0 siblings, 1 reply; 6+ messages in thread
From: Leo Famulari @ 2020-10-29 14:14 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 44276-done

On Thu, Oct 29, 2020 at 09:30:51AM +0100, Tanguy Le Carrour wrote:
> Way out of my comfort zone! ^_^'
> Even if I think I get your point! `alsa-lib` is indeed used at run time.
> So… do as you think is best! :-)

Alright :) I made it a regular input with commit
bda1359b8e2ff36e10bce92475ce615211925342




^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#44276] [PATCH] gnu: Add python-simpleaudio.
  2020-10-29 14:14     ` bug#44276: " Leo Famulari
@ 2020-10-29 14:26       ` Tanguy Le Carrour
  0 siblings, 0 replies; 6+ messages in thread
From: Tanguy Le Carrour @ 2020-10-29 14:26 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 44276-done

Le 10/29, Leo Famulari a écrit :
> On Thu, Oct 29, 2020 at 09:30:51AM +0100, Tanguy Le Carrour wrote:
> > Way out of my comfort zone! ^_^'
> > Even if I think I get your point! `alsa-lib` is indeed used at run time.
> > So… do as you think is best! :-)
> 
> Alright :) I made it a regular input with commit
> bda1359b8e2ff36e10bce92475ce615211925342

Thanks!!

-- 
Tanguy




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-29 14:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-28  9:08 [bug#44276] [PATCH] gnu: Add python-simpleaudio Tanguy Le Carrour
2020-10-28 16:32 ` Leo Famulari
2020-10-28 16:43 ` Leo Famulari
2020-10-29  8:30   ` Tanguy Le Carrour
2020-10-29 14:14     ` bug#44276: " Leo Famulari
2020-10-29 14:26       ` [bug#44276] " Tanguy Le Carrour

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.