unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37661] [PATCH] gnu: python2-tqdm: Depend on python2-functools32.
@ 2019-10-08 13:58 Pierre Langlois
  2019-10-08 21:19 ` bug#37661: " Marius Bakke
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre Langlois @ 2019-10-08 13:58 UTC (permalink / raw)
  To: 37661; +Cc: Pierre Langlois

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

Hi Guix!

This fixes the python2-tqdm package which failed to build for me since
core-updates was merged:

```
starting phase `check'
running "python setup.py" with command "test" and parameters ()
running test
Searching for functools32
Reading https://pypi.org/simple/functools32/
Download error on https://pypi.org/simple/functools32/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'functools32' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for functools32
error: Could not find suitable distribution for Requirement.parse('functools32')
command "python" "-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "test" failed with status 1
builder for `/gnu/store/p3v9nnxsk9bl0lxcd2zfzkgx56sv1q11-python2-tqdm-4.19.6.drv' failed with exit code 1
build of /gnu/store/p3v9nnxsk9bl0lxcd2zfzkgx56sv1q11-python2-tqdm-4.19.6.drv failed
View build log at '/var/log/guix/drvs/p3/v9nnxsk9bl0lxcd2zfzkgx56sv1q11-python2-tqdm-4.19.6.drv.bz2'.
guix build: error: build of `/gnu/store/p3v9nnxsk9bl0lxcd2zfzkgx56sv1q11-python2-tqdm-4.19.6.drv' failed
```

Adding python2-functools32 as a native-input fixes the issue.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-python2-tqdm-Depend-on-python2-functools32.patch --]
[-- Type: text/x-patch, Size: 1468 bytes --]

From 13a97fe6bda3aee5bc61a0d0de3459069bc947e1 Mon Sep 17 00:00:00 2001
From: Pierre Langlois <pierre.langlois@gmx.com>
Date: Tue, 8 Oct 2019 14:38:32 +0100
Subject: [PATCH] gnu: python2-tqdm: Depend on python2-functools32.

* gnu/packages/python-xyz.scm (python-tqdm)[properties]: Add python2-variant.
(python2-tqdm): Use 'strip-python2-variant'.
[native-inputs]: Add python2-functools32.
---
 gnu/packages/python-xyz.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b0f5ec7588..c30532266c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13746,10 +13746,15 @@ ignoring formatting changes.")
       "Make loops show a progress bar on the console by just wrapping any
 iterable with @code{|tqdm(iterable)|}.  Offers many options to define
 design and layout.")
-    (license (list license:mpl2.0 license:expat))))
+    (license (list license:mpl2.0 license:expat))
+    (properties `((python2-variant . ,(delay python2-tqdm))))))

 (define-public python2-tqdm
-  (package-with-python2 python-tqdm))
+  (let ((tqdm (package-with-python2
+                (strip-python2-variant python-tqdm))))
+    (package (inherit tqdm)
+      (native-inputs `(("python2-functools32" ,python2-functools32)
+                        ,@(package-native-inputs tqdm))))))

 (define-public python-pkginfo
   (package
--
2.23.0


[-- Attachment #3: Type: text/plain, Size: 16 bytes --]


Thanks,
Pierre

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

* bug#37661: [PATCH] gnu: python2-tqdm: Depend on python2-functools32.
  2019-10-08 13:58 [bug#37661] [PATCH] gnu: python2-tqdm: Depend on python2-functools32 Pierre Langlois
@ 2019-10-08 21:19 ` Marius Bakke
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Bakke @ 2019-10-08 21:19 UTC (permalink / raw)
  To: Pierre Langlois, 37661-done

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

Pierre Langlois <pierre.langlois@gmx.com> writes:

> Hi Guix!
>
> This fixes the python2-tqdm package which failed to build for me since
> core-updates was merged:
>
> ```
> starting phase `check'
> running "python setup.py" with command "test" and parameters ()
> running test
> Searching for functools32
> Reading https://pypi.org/simple/functools32/
> Download error on https://pypi.org/simple/functools32/: [Errno -2] Name or service not known -- Some packages may not be found!
> Couldn't find index page for 'functools32' (maybe misspelled?)
> Scanning index of all packages (this may take a while)
> Reading https://pypi.org/simple/
> Download error on https://pypi.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
> No local packages or working download links found for functools32
> error: Could not find suitable distribution for Requirement.parse('functools32')
> command "python" "-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "test" failed with status 1
> builder for `/gnu/store/p3v9nnxsk9bl0lxcd2zfzkgx56sv1q11-python2-tqdm-4.19.6.drv' failed with exit code 1
> build of /gnu/store/p3v9nnxsk9bl0lxcd2zfzkgx56sv1q11-python2-tqdm-4.19.6.drv failed
> View build log at '/var/log/guix/drvs/p3/v9nnxsk9bl0lxcd2zfzkgx56sv1q11-python2-tqdm-4.19.6.drv.bz2'.
> guix build: error: build of `/gnu/store/p3v9nnxsk9bl0lxcd2zfzkgx56sv1q11-python2-tqdm-4.19.6.drv' failed
> ```
>
> Adding python2-functools32 as a native-input fixes the issue.

Thanks!  Pushed in f875d76f16.

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

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

end of thread, other threads:[~2019-10-08 21:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-08 13:58 [bug#37661] [PATCH] gnu: python2-tqdm: Depend on python2-functools32 Pierre Langlois
2019-10-08 21:19 ` bug#37661: " Marius Bakke

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