unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy)
@ 2022-09-21 22:14 Dr. Arne Babenhauserheide
  2022-09-21 22:24 ` Dr. Arne Babenhauserheide
  2022-09-22 15:58 ` Maxime Devos
  0 siblings, 2 replies; 10+ messages in thread
From: Dr. Arne Babenhauserheide @ 2022-09-21 22:14 UTC (permalink / raw)
  To: 57990


[-- Attachment #1.1: Type: text/plain, Size: 33 bytes --]

Hi,

this packages python-mat2.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-python-mat2-0.13.0.patch --]
[-- Type: text/x-patch, Size: 2222 bytes --]

From 91f85a377361f989900f007fa08cd2a3063175ac Mon Sep 17 00:00:00 2001
From: Arne Babenhauserheide <arne_bab@web.de>
Date: Thu, 22 Sep 2022 00:12:41 +0200
Subject: [PATCH] gnu: Add python-mat2 0.13.0

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 92e0c9dbe8..8a5b796145 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -201,6 +201,7 @@ (define-module (gnu packages python-xyz)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages monitoring)
   #:use-module (gnu packages multiprecision)
+  #:use-module (gnu packages music)
   #:use-module (gnu packages networking)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages node)
@@ -239,6 +240,7 @@ (define-module (gnu packages python-xyz)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages video)
+  #:use-module (gnu packages virtualization)
   #:use-module (gnu packages web)
   #:use-module (gnu packages wxwidgets)
   #:use-module (gnu packages base)
@@ -5567,6 +5569,23 @@ (define-public mallard-ducktype
 provides additional functionality on the produced Mallard documents.")
     (license license:expat)))
 
+(define-public python-mat2
+  (package
+    (name "python-mat2")
+    (version "0.13.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "mat2" version))
+              (sha256
+               (base32
+                "0zkk6gfjn2rlj5ncbbkc9h5l4qbkvfdlf3n1lpjr03bajrri8dhy"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-mutagen python-pycairo python-pygobject ffmpeg perl-image-exiftool bubblewrap gdk-pixbuf poppler librsvg))
+    (home-page "https://0xacab.org/jvoisin/mat2")
+    (synopsis "A handy tool to trash your metadata")
+    (description "This package provides a handy tool to trash your metadata")
+    (license license:lgpl3+)))
+
 (define-public python-cython
   (package
     (name "python-cython")
-- 
2.37.3


[-- Attachment #1.3: Type: text/plain, Size: 101 bytes --]


Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

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

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

* bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy)
  2022-09-21 22:14 bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy) Dr. Arne Babenhauserheide
@ 2022-09-21 22:24 ` Dr. Arne Babenhauserheide
  2022-09-21 22:25   ` Dr. Arne Babenhauserheide
  2022-09-22 15:59   ` Maxime Devos
  2022-09-22 15:58 ` Maxime Devos
  1 sibling, 2 replies; 10+ messages in thread
From: Dr. Arne Babenhauserheide @ 2022-09-21 22:24 UTC (permalink / raw)
  To: 57990

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


"Dr. Arne Babenhauserheide" <arne_bab@web.de> writes:

> +    (propagated-inputs (list python-mutagen python-pycairo python-pygobject ffmpeg perl-image-exiftool bubblewrap gdk-pixbuf poppler librsvg))

My local ffmpeg is ffmpeg-5, but this dependency pulls in ffmpeg-4 — can
I express "any version of ffmpeg"?

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

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

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

* bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy)
  2022-09-21 22:24 ` Dr. Arne Babenhauserheide
@ 2022-09-21 22:25   ` Dr. Arne Babenhauserheide
  2022-09-22  6:21     ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2022-09-22 15:59   ` Maxime Devos
  1 sibling, 1 reply; 10+ messages in thread
From: Dr. Arne Babenhauserheide @ 2022-09-21 22:25 UTC (permalink / raw)
  To: 57990

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

"Dr. Arne Babenhauserheide" <arne_bab@web.de> writes:

> +    (propagated-inputs (list python-mutagen python-pycairo python-pygobject ffmpeg perl-image-exiftool bubblewrap gdk-pixbuf poppler librsvg))

My local ffmpeg is ffmpeg-5, but this dependency pulls in ffmpeg-4 — can
I express "any version of ffmpeg"?

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

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

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

* bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy)
  2022-09-21 22:25   ` Dr. Arne Babenhauserheide
@ 2022-09-22  6:21     ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2022-09-22 11:38       ` Dr. Arne Babenhauserheide
  0 siblings, 1 reply; 10+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2022-09-22  6:21 UTC (permalink / raw)
  To: 57990, arne_bab

> can I express "any version of ffmpeg"?

No, this would go against the goals of Guix: packages can't depend on properties of the environment they'll end up in (if any).

They must be self-contained, or use standard features like $PATH et al to find optional dependencies at run time, but these will have to be provided by the user/manifest/whatever.

Sorry,

T G-R

Sent on the go.  Excuse or enjoy my brevity.




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

* bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy)
  2022-09-22  6:21     ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2022-09-22 11:38       ` Dr. Arne Babenhauserheide
  2022-09-22 18:57         ` Maxime Devos
  0 siblings, 1 reply; 10+ messages in thread
From: Dr. Arne Babenhauserheide @ 2022-09-22 11:38 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 57990

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


Tobias Geerinckx-Rice <me@tobias.gr> writes:

>> can I express "any version of ffmpeg"?
>
> No, this would go against the goals of Guix: packages can't depend on properties of the environment they'll end up in (if any).

What’s the right way to deal with this, then? I need ffmpeg at as
propagated-input, but I do not want to create a conflict with a manifest
that just defines "ffmpeg".

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

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

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

* bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy)
  2022-09-21 22:14 bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy) Dr. Arne Babenhauserheide
  2022-09-21 22:24 ` Dr. Arne Babenhauserheide
@ 2022-09-22 15:58 ` Maxime Devos
  1 sibling, 0 replies; 10+ messages in thread
From: Maxime Devos @ 2022-09-22 15:58 UTC (permalink / raw)
  To: Dr. Arne Babenhauserheide, 57990


[-- Attachment #1.1.1: Type: text/plain, Size: 577 bytes --]



On 22-09-2022 00:14, Dr. Arne Babenhauserheide wrote:
> Hi,
> 
> this packages python-mat2.

To avoid profile collisions when the user installed a different version 
of ffmpeg (e.g. ffmpeg@5) in their profile, could you modify the code to 
look at a /gnu/store/.../bin/ffmpeg instead?  Likewise for bubblewrap, 
gdk-pixbuf, poppler and librsvg, if feasible.

For ffmpeg, the following function needs to be modified:

https://0xacab.org/jvoisin/mat2/-/blob/master/libmat2/video.py#L139

(substitute* + search-input-file can be useful).

Greetings,
Maxime.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

* bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy)
  2022-09-21 22:24 ` Dr. Arne Babenhauserheide
  2022-09-21 22:25   ` Dr. Arne Babenhauserheide
@ 2022-09-22 15:59   ` Maxime Devos
  1 sibling, 0 replies; 10+ messages in thread
From: Maxime Devos @ 2022-09-22 15:59 UTC (permalink / raw)
  To: Dr. Arne Babenhauserheide, 57990


[-- Attachment #1.1.1: Type: text/plain, Size: 574 bytes --]



On 22-09-2022 00:24, Dr. Arne Babenhauserheide wrote:
> 
> "Dr. Arne Babenhauserheide" <arne_bab@web.de> writes:
> 
>> +    (propagated-inputs (list python-mutagen python-pycairo python-pygobject ffmpeg perl-image-exiftool bubblewrap gdk-pixbuf poppler librsvg))
> 
> My local ffmpeg is ffmpeg-5, but this dependency pulls in ffmpeg-4 — can
> I express "any version of ffmpeg"?

This does not answer the question you asked, but if your intention is to 
pull in a newer version of ffmpeg, you can write ffmpeg-5 instead of 
ffmpeg-4.

Greetings,
Maxime.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

* bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy)
  2022-09-22 11:38       ` Dr. Arne Babenhauserheide
@ 2022-09-22 18:57         ` Maxime Devos
  2022-09-24  2:13           ` Chris Marusich
  0 siblings, 1 reply; 10+ messages in thread
From: Maxime Devos @ 2022-09-22 18:57 UTC (permalink / raw)
  To: Dr. Arne Babenhauserheide, Tobias Geerinckx-Rice; +Cc: 57990


[-- Attachment #1.1.1: Type: text/plain, Size: 1042 bytes --]



On 22-09-2022 13:38, Dr. Arne Babenhauserheide wrote:
> 
> Tobias Geerinckx-Rice <me@tobias.gr> writes:
> 
>>> can I express "any version of ffmpeg"?
>>
>> No, this would go against the goals of Guix: packages can't depend on properties of the environment they'll end up in (if any).
> 
> What’s the right way to deal with this, then? I need ffmpeg at as
> propagated-input, but I do not want to create a conflict with a manifest
> that just defines "ffmpeg".

In one my replies, I have proposed a method that avoids propagating ffmpeg:

> To avoid profile collisions when the user installed a different version of ffmpeg (e.g. ffmpeg@5) in their profile, could you modify the code to look at a /gnu/store/.../bin/ffmpeg instead?  Likewise for bubblewrap, gdk-pixbuf, poppler and librsvg, if feasible.
> 
> For ffmpeg, the following function needs to be modified:
> 
> https://0xacab.org/jvoisin/mat2/-/blob/master/libmat2/video.py#L139
> 
> (substitute* + search-input-file can be useful). 

Greetings,
Maxime.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

* bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy)
  2022-09-22 18:57         ` Maxime Devos
@ 2022-09-24  2:13           ` Chris Marusich
  2022-09-24 13:31             ` Dr. Arne Babenhauserheide
  0 siblings, 1 reply; 10+ messages in thread
From: Chris Marusich @ 2022-09-24  2:13 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 57990, Dr. Arne Babenhauserheide, Tobias Geerinckx-Rice

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

Apologies for the top post.  I noticed this email and wanted to point you
to prior work, in case it proves useful:

https://issues.guix.gnu.org/31307#14

On Thu, Sep 22, 2022 at 12:24 PM Maxime Devos <maximedevos@telenet.be>
wrote:

>
>
> On 22-09-2022 13:38, Dr. Arne Babenhauserheide wrote:
> >
> > Tobias Geerinckx-Rice <me@tobias.gr> writes:
> >
> >>> can I express "any version of ffmpeg"?
> >>
> >> No, this would go against the goals of Guix: packages can't depend on
> properties of the environment they'll end up in (if any).
> >
> > What’s the right way to deal with this, then? I need ffmpeg at as
> > propagated-input, but I do not want to create a conflict with a manifest
> > that just defines "ffmpeg".
>
> In one my replies, I have proposed a method that avoids propagating ffmpeg:
>
> > To avoid profile collisions when the user installed a different version
> of ffmpeg (e.g. ffmpeg@5) in their profile, could you modify the code to
> look at a /gnu/store/.../bin/ffmpeg instead?  Likewise for bubblewrap,
> gdk-pixbuf, poppler and librsvg, if feasible.
> >
> > For ffmpeg, the following function needs to be modified:
> >
> > https://0xacab.org/jvoisin/mat2/-/blob/master/libmat2/video.py#L139
> >
> > (substitute* + search-input-file can be useful).
>
> Greetings,
> Maxime.
>

[-- Attachment #2: Type: text/html, Size: 2004 bytes --]

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

* bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy)
  2022-09-24  2:13           ` Chris Marusich
@ 2022-09-24 13:31             ` Dr. Arne Babenhauserheide
  0 siblings, 0 replies; 10+ messages in thread
From: Dr. Arne Babenhauserheide @ 2022-09-24 13:31 UTC (permalink / raw)
  To: Chris Marusich; +Cc: 57990, Tobias Geerinckx-Rice, Maxime Devos

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


Chris Marusich <cmmarusich@gmail.com> writes:

> Apologies for the top post.  I noticed this email and wanted to point you to prior work, in case it proves useful:
>
> https://issues.guix.gnu.org/31307#14

Very cool — thank you! That should make it easier for me to follow the
tips.

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de

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

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

end of thread, other threads:[~2022-09-24 13:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-21 22:14 bug#57990: Add package: python-mat2 (remove metadata from images to improve privacy) Dr. Arne Babenhauserheide
2022-09-21 22:24 ` Dr. Arne Babenhauserheide
2022-09-21 22:25   ` Dr. Arne Babenhauserheide
2022-09-22  6:21     ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-09-22 11:38       ` Dr. Arne Babenhauserheide
2022-09-22 18:57         ` Maxime Devos
2022-09-24  2:13           ` Chris Marusich
2022-09-24 13:31             ` Dr. Arne Babenhauserheide
2022-09-22 15:59   ` Maxime Devos
2022-09-22 15:58 ` Maxime Devos

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).