unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* WIP gnu: poetry: Update to 1.0.3.
@ 2020-02-03 15:31 Tanguy Le Carrour
  2020-02-03 18:20 ` Gábor Boskovits
  2020-02-19 16:40 ` Tanguy Le Carrour
  0 siblings, 2 replies; 5+ messages in thread
From: Tanguy Le Carrour @ 2020-02-03 15:31 UTC (permalink / raw)
  To: Guix

Dear Guix,

I'm working on updating Poetry to version 1.0.3 and I have a problem
with the version of a dependency.

Poetry now depends on python-keyring >=20.0.0,<21.0.0. In Guix we
have python-keyring	21.0.0, so it does not work once installed!

What am I supposed to do?

I see 3 different ways out of this:
- patch the package to make it use our version (I tried but failed [1]);
- ask upstream to update dependencies;
- declare a new package python-keyring-20.0.0 and use it as an input.

[1]: attempt to patch setup.py
-    (arguments `(#:tests? #f))                    ; tests depend on dbus service
+    (arguments
+     `(#:tests? #f ;; Pypi does not have tests.
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'change-dependencies
+           (lambda _
+             ;; Guix has version 21.0.0 of python-keyring
+             (invoke "sed" "-i" "-e"
+                     "s/keyring>=20.0.1,<21.0.0/keyring>=20.0.1,<22.0.0/"
+                     "setup.py")
+             #t)))))

Any help welcome!

-- 
Tanguy

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

end of thread, other threads:[~2020-02-19 16:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-03 15:31 WIP gnu: poetry: Update to 1.0.3 Tanguy Le Carrour
2020-02-03 18:20 ` Gábor Boskovits
2020-02-04  8:48   ` Tanguy Le Carrour
2020-02-05 17:13     ` Tanguy Le Carrour
2020-02-19 16:40 ` Tanguy Le Carrour

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).