GNU bug report logs - #56717
[PATCH 0/2] gnu: Add python-i3ipc and python-autotiling.

Previous Next

Package: guix-patches;

Reported by: Hilton Chain <hako <at> ultrarare.space>

Date: Sat, 23 Jul 2022 07:13:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56717 in the body.
You can then email your comments to 56717 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 07:13:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hilton Chain <hako <at> ultrarare.space>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 23 Jul 2022 07:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/2] gnu: Add python-i3ipc and python-autotiling.
Date: Sat, 23 Jul 2022 15:00:27 +0800
Hi Guix,

These patches add autotiling (a tool to automatically switch the
horizontal/vertical window split orientation in i3 and sway) and its
dependency i3ipc.

Since I do not have a working X environment, their tests are currently
disabled.

Thanks!

Hilton Chain (2):
  gnu: Add python-i3ipc
  gnu: Add python-autotiling.

 gnu/packages/python-xyz.scm | 50 +++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)


base-commit: 32a00363435ac8c1bc93ef1281b2c2afc28a8877
--
2.36.1




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 07:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: 56717 <at> debbugs.gnu.org 
Subject: [PATCH 1/2] gnu: Add python-i3ipc
Date: Sat, 23 Jul 2022 14:31:30 +0800
* gnu/packages/python-xyz.scm (python-i3ipc): New variable.

Signed-off-by: Hilton Chain <hako <at> ultrarare.space>
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 11f709f7b5..4bf6b3d965 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -124,6 +124,7 @@
 ;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom <at> gmail.com>
 ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
 ;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me <at> jeandudey.tech>
+;;; Copyright © 2022 Hilton Chain <hako <at> ultrarare.space>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -30203,3 +30204,25 @@ (define-public python-bsdiff4
 binary diff utility.  It also provides two command-line tools, @code{bsdiff4}
 and @code{bspatch4}.")
     (license license:bsd-2)))
+
+(define-public python-i3ipc
+  (package
+    (name "python-i3ipc")
+    (version "2.2.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/altdesktop/i3ipc-python")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "13bzs9dcv27czpnnbgz7a037lm8h991c8gk0qzzk5mq5yak24715"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:tests? #f))
+    (inputs (list python-xlib))
+    (home-page "https://github.com/altdesktop/i3ipc-python")
+    (synopsis "Python library for controlling i3wm and sway")
+    (description "An improved Python library to control i3wm and sway.")
+    (license license:bsd-3)))
-- 
2.36.1





Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 07:16:02 GMT) Full text and rfc822 format available.

Message #11 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: 56717 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: Add python-autotiling.
Date: Sat, 23 Jul 2022 14:33:09 +0800
* gnu/packages/python-xyz.scm (python-autotiling): New variable.

Signed-off-by: Hilton Chain <hako <at> ultrarare.space>
---
 gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4bf6b3d965..8fd413a683 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30226,3 +30226,30 @@ (define-public python-i3ipc
     (synopsis "Python library for controlling i3wm and sway")
     (description "An improved Python library to control i3wm and sway.")
     (license license:bsd-3)))
+
+(define-public python-autotiling
+  (package
+    (name "autotiling")
+    (version "1.6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/nwg-piotr/autotiling")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1hjlvg7095s322gb43r9g7mqlsy3pj13l827jpnbn5x0918rq9rr"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:tests? #f))
+    (inputs (list python-wheel python-xlib))
+    (propagated-inputs (list python-i3ipc))
+    (home-page "https://github.com/nwg-piotr/autotiling")
+    (synopsis
+     "Automatically switch the horizontal/vertical window split orientation in
+ i3 and sway")
+    (description "This script uses the i3ipc-python library to switch the layout
+splith/splitv depending on the currently focused window dimensions. It works on
+both sway and i3 window managers.")
+    (license license:gpl3)))
-- 
2.36.1





Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 08:52:01 GMT) Full text and rfc822 format available.

Message #14 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: "Hilton Chain" <hako <at> ultrarare.space>, <56717 <at> debbugs.gnu.org>
Subject: Re: [bug#56717] [PATCH 1/2] gnu: Add python-i3ipc
Date: Sat, 23 Jul 2022 09:50:56 +0100
Hello!

On Sat Jul 23, 2022 at 7:31 AM BST, Hilton Chain via Guix-patches via wrote:
> +    (arguments
> +     '(#:tests? #f))
Could you add an explanation of why the test fails in a comment, if
possible? Also, (arguments (list ...)) is now generally preferred to
(arguments '(...)) :)

    -- (




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 08:55:02 GMT) Full text and rfc822 format available.

Message #17 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: "Hilton Chain" <hako <at> ultrarare.space>, <56717 <at> debbugs.gnu.org>
Subject: Re: [bug#56717] [PATCH 1/2] gnu: Add python-i3ipc
Date: Sat, 23 Jul 2022 09:54:03 +0100
On Sat Jul 23, 2022 at 7:31 AM BST, Hilton Chain via Guix-patches via wrote:
> +    (inputs (list python-xlib))
You'll want to propagate this input, as is usually done for Python
libraries.

    -- (




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 08:55:02 GMT) Full text and rfc822 format available.

Message #20 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: "Hilton Chain" <hako <at> ultrarare.space>, <56717 <at> debbugs.gnu.org>
Subject: Re: [bug#56717] [PATCH 2/2] gnu: Add python-autotiling.
Date: Sat, 23 Jul 2022 09:54:57 +0100
On Sat Jul 23, 2022 at 7:33 AM BST, Hilton Chain via Guix-patches via wrote:
> +(define-public python-autotiling
I think this should be changed to `i3-autotiling`, since it's a Python
program, not a library.

> +  (package
> +    (name "autotiling")
Same here.

> +    (arguments
> +     '(#:tests? #f))
Can you add an explanation and change to (list ...) style here too,
please?

> +    (inputs (list python-wheel python-xlib))
I think python-wheel only needs to be a native-input, and python-xlib
can be removed if you propagate it in python-i3ipc.

    -- (




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 10:44:01 GMT) Full text and rfc822 format available.

Message #23 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: "(" <paren <at> disroot.org>
Cc: 56717 <at> debbugs.gnu.org
Subject: [PATCH v2 0/2] gnu: Add python-i3ipc and i3-autotiling.
Date: Sat, 23 Jul 2022 18:40:27 +0800
v1 -> v2:
* Package name: python-autotiling -> i3-autotiling
* Arguments style: use (list ...) instead of '(...)
* Comments for tests

Thank you, ( !

Hilton Chain (2):
  gnu: Add python-i3ipc.
  gnu: Add i3-autotiling.

 gnu/packages/python-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)


base-commit: 32a00363435ac8c1bc93ef1281b2c2afc28a8877
--
2.36.1




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 10:45:01 GMT) Full text and rfc822 format available.

Message #26 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: "(" <paren <at> disroot.org>
Cc: 56717 <at> debbugs.gnu.org
Subject: [PATCH v2 1/2] gnu: Add python-i3ipc.
Date: Sat, 23 Jul 2022 18:31:02 +0800
* gnu/packages/python-xyz.scm (python-i3ipc): New variable.

Signed-off-by: Hilton Chain <hako <at> ultrarare.space>
---
 gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 11f709f7b5..2115007a97 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -124,6 +124,7 @@
 ;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom <at> gmail.com>
 ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
 ;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me <at> jeandudey.tech>
+;;; Copyright © 2022 Hilton Chain <hako <at> ultrarare.space>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -30203,3 +30204,24 @@ (define-public python-bsdiff4
 binary diff utility.  It also provides two command-line tools, @code{bsdiff4}
 and @code{bspatch4}.")
     (license license:bsd-2)))
+
+(define-public python-i3ipc
+  (package
+    (name "python-i3ipc")
+    (version "2.2.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/altdesktop/i3ipc-python")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "13bzs9dcv27czpnnbgz7a037lm8h991c8gk0qzzk5mq5yak24715"))))
+    (build-system python-build-system)
+    (arguments (list #:tests? #f)) ;a working X environment is needed to run the tests
+    (propagated-inputs (list python-xlib))
+    (home-page "https://github.com/altdesktop/i3ipc-python")
+    (synopsis "Python library for controlling i3wm and sway")
+    (description "An improved Python library to control i3wm and sway.")
+    (license license:bsd-3)))
--
2.36.1




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 10:46:02 GMT) Full text and rfc822 format available.

Message #29 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: "(" <paren <at> disroot.org>
Cc: 56717 <at> debbugs.gnu.org
Subject: [PATCH v2 2/2] gnu: Add i3-autotiling.
Date: Sat, 23 Jul 2022 18:31:36 +0800
* gnu/packages/python-xyz.scm (i3-autotiling): New variable.

Signed-off-by: Hilton Chain <hako <at> ultrarare.space>
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2115007a97..eeeced71b7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30225,3 +30225,29 @@ (define-public python-i3ipc
     (synopsis "Python library for controlling i3wm and sway")
     (description "An improved Python library to control i3wm and sway.")
     (license license:bsd-3)))
+
+(define-public i3-autotiling
+  (package
+    (name "i3-autotiling")
+    (version "1.6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/nwg-piotr/autotiling")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1hjlvg7095s322gb43r9g7mqlsy3pj13l827jpnbn5x0918rq9rr"))))
+    (build-system python-build-system)
+    (arguments (list #:tests? #f)) ;a working X environment is needed to run the tests
+    (native-inputs (list python-wheel))
+    (propagated-inputs (list python-i3ipc))
+    (home-page "https://github.com/nwg-piotr/autotiling")
+    (synopsis
+     "Automatically switch the horizontal/vertical window split orientation in
+ i3 and sway")
+    (description "This script uses the i3ipc-python library to switch the layout
+splith/splitv depending on the currently focused window dimensions. It works on
+both sway and i3 window managers.")
+    (license license:gpl3)))
--
2.36.1




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 10:49:02 GMT) Full text and rfc822 format available.

Message #32 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: "Hilton Chain" <hako <at> ultrarare.space>
Cc: 56717 <at> debbugs.gnu.org
Subject: Re: [PATCH v2 1/2] gnu: Add python-i3ipc.
Date: Sat, 23 Jul 2022 11:48:47 +0100
Almost LGTM :)

On Sat Jul 23, 2022 at 11:31 AM BST, Hilton Chain wrote:
> +    (synopsis "Python library for controlling i3wm and sway")
i3wm -> i3 and sway -> Sway maybe?

> +    (description "An improved Python library to control i3wm and sway.")
Maybe better as:

(description
 "This package provides a Python library for controlling the i3 and Sway
window managers.")

Also, have you run `guix lint python-i3ipc i3-autotiling`? Make sure to
do that and resolve any issues it raises :)

    -- (




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 10:54:01 GMT) Full text and rfc822 format available.

Message #35 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: "Hilton Chain" <hako <at> ultrarare.space>
Cc: 56717 <at> debbugs.gnu.org
Subject: Re: [PATCH v2 2/2] gnu: Add i3-autotiling.
Date: Sat, 23 Jul 2022 11:52:59 +0100
On Sat Jul 23, 2022 at 11:31 AM BST, Hilton Chain wrote:
> +    (synopsis
> +     "Automatically switch the horizontal/vertical window split orientation in
> + i3 and sway")
I think a synopsis that spills onto multiple lines is probably too long.
How about simply:

(synopsis "Automatically tile windows in i3 and Sway")

> +    (description "This script uses the i3ipc-python library to switch the layout
> +splith/splitv depending on the currently focused window dimensions. It works on
> +both sway and i3 window managers.")
Maybe something like:

(description
 "This package provides a script that automatically switches the layout
of an i3 or Sway desktop based on the dimensions of the focused window.")

(By the way, that's the standard formatting for a description: the
string is on a new line.)

    -- (




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 11:02:01 GMT) Full text and rfc822 format available.

Message #38 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Hilton Chain <hako <at> ultrarare.space>, "(" <paren <at> disroot.org>
Cc: 56717 <at> debbugs.gnu.org
Subject: Re: [bug#56717] [PATCH v2 2/2] gnu: Add i3-autotiling.
Date: Sat, 23 Jul 2022 13:01:38 +0200
[Message part 1 (text/plain, inline)]
On 23-07-2022 12:31, Hilton Chain via Guix-patches via wrote:
> +    (arguments (list #:tests? #f)) ;a working X environment is needed to run the tests

You can make a working X environment with "xvfb-run -- the-test-command" 
or with (IIRC) "Xvfb :1&" + (sleep 1) (preferably the former, as the 
latter is racy) -- search with "git grep -F xvfb-run" or "git grep -F 
Xvfb" for examples.

Greetings,
Maxime.

[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 11:40:02 GMT) Full text and rfc822 format available.

Message #41 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: Maxime Devos <maximedevos <at> telenet.be>, "(" <paren <at> disroot.org>
Cc: 56717 <at> debbugs.gnu.org
Subject: Re: [bug#56717] [PATCH v2 2/2] gnu: Add i3-autotiling.
Date: Sat, 23 Jul 2022 19:38:30 +0800
Thanks!

xvfb-run works well, however some "Fontconfig error: No writable cache directories"
occurs. I don't know what to do with this, do you have any ideas?

* Below attaching part of the build log:
---
/gnu/store/65i3nhcwmz0p8rqbg48gaavyky4g4hwk-python-3.9.9/lib/python3.9/selectors.py:469: Failed
---------------------------- Captured stderr setup -----------------------------
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
----------------------------- Captured stderr call -----------------------------
Fontconfig error: No writable cache directories
Fontconfig error: No writable cache directories
------------------------------ Captured log call -------------------------------
ERROR    asyncio:base_events.py:1738 Task exception was never retrieved
future: <Task finished name='Task-82' coro=<Connection.command() done, defined at /gnu/store/gwsda4lb70rzazfh0kzx9z3wx5i4z43b-python-i3ipc-2.2.1/lib/python3.9/site-packages/i3ipc/aio/connection.py:503> exception=OSError(107, 'Transport endpoint is not connected')>
Traceback (most recent call last):
  File "/gnu/store/gwsda4lb70rzazfh0kzx9z3wx5i4z43b-python-i3ipc-2.2.1/lib/python3.9/site-packages/i3ipc/aio/connection.py", line 514, in command
    data = await self._message(MessageType.COMMAND, cmd)
  File "/gnu/store/gwsda4lb70rzazfh0kzx9z3wx5i4z43b-python-i3ipc-2.2.1/lib/python3.9/site-packages/i3ipc/aio/connection.py", line 407, in _message
    await self._loop.sock_sendall(self._cmd_socket, _pack(message_type, payload))
  File "/gnu/store/65i3nhcwmz0p8rqbg48gaavyky4g4hwk-python-3.9.9/lib/python3.9/asyncio/selector_events.py", line 446, in sock_sendall
    n = sock.send(data)
OSError: [Errno 107] Transport endpoint is not connected
ERROR    asyncio:base_events.py:1738 Future exception was never retrieved
future: <Future finished exception=FileNotFoundError(2, 'No such file or directory')>
Traceback (most recent call last):
  File "/gnu/store/gwsda4lb70rzazfh0kzx9z3wx5i4z43b-python-i3ipc-2.2.1/lib/python3.9/site-packages/i3ipc/aio/connection.py", line 383, in do_reconnect
    await self.connect()
  File "/gnu/store/gwsda4lb70rzazfh0kzx9z3wx5i4z43b-python-i3ipc-2.2.1/lib/python3.9/site-packages/i3ipc/aio/connection.py", line 359, in connect
    self._cmd_socket.connect(self.socket_path)
FileNotFoundError: [Errno 2] No such file or directory




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 12:18:02 GMT) Full text and rfc822 format available.

Message #44 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Hilton Chain <hako <at> ultrarare.space>, "(" <paren <at> disroot.org>
Cc: 56717 <at> debbugs.gnu.org
Subject: Re: [bug#56717] [PATCH v2 2/2] gnu: Add i3-autotiling.
Date: Sat, 23 Jul 2022 14:17:09 +0200
[Message part 1 (text/plain, inline)]
On 23-07-2022 13:38, Hilton Chain wrote:

> xvfb-run works well, however some "Fontconfig error: No writable cache directories"
> occurs. I don't know what to do with this, do you have any ideas?

For these kind of things, creating the relevant directory and setting an 
environment variable tends to work. Maybe try (setenv "HOME" 
(getcwd)))?  However, IIUC, these fontconfig errors can usually be 
ignored (probably because it's just a cache?), likely the "Transport 
endpoint is not connected" test failure is independent.

My guess is that it tries to connect to the WM i3, but that WM is not 
running in the build environment fails.

You could give starting the WM before running the test a try, but maybe 
it's not worth the effort.

Greetings,
Maxime.

[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 12:23:02 GMT) Full text and rfc822 format available.

Message #47 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: "Maxime Devos" <maximedevos <at> telenet.be>, "Hilton Chain"
 <hako <at> ultrarare.space>
Cc: 56717 <at> debbugs.gnu.org
Subject: Re: [bug#56717] [PATCH v2 2/2] gnu: Add i3-autotiling.
Date: Sat, 23 Jul 2022 13:22:01 +0100
On Sat Jul 23, 2022 at 1:17 PM BST, Maxime Devos wrote:
> For these kind of things, creating the relevant directory and setting an 
> environment variable tends to work. Maybe try (setenv "HOME" 
> (getcwd)))?  However, IIUC, these fontconfig errors can usually be 
> ignored (probably because it's just a cache?), likely the "Transport 
> endpoint is not connected" test failure is independent.
We got this working on IRC :)

> My guess is that it tries to connect to the WM i3, but that WM is not 
> running in the build environment fails.
>
> You could give starting the WM before running the test a try, but maybe 
> it's not worth the effort.
Looks like the tests do a popen on i3 themselves:
<https://github.com/altdesktop/i3ipc-python/blob/master/test/ipctest.py#L16>



    -- (




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 12:53:02 GMT) Full text and rfc822 format available.

Message #50 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: "(" <paren <at> disroot.org>, "Maxime Devos" <maximedevos <at> telenet.be>
Cc: 56717 <at> debbugs.gnu.org
Subject: [PATCH v3 0/2] gnu: Add python-i3ipc and i3-autotiling.
Date: Sat, 23 Jul 2022 20:49:03 +0800
v2 -> v3: synopsis and description changes suggested by (

Hilton Chain (2):
  gnu: Add python-i3ipc.
  gnu: Add i3-autotiling.

 gnu/packages/python-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)


base-commit: 32a00363435ac8c1bc93ef1281b2c2afc28a8877
--
2.36.1




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 12:54:01 GMT) Full text and rfc822 format available.

Message #53 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: "(" <paren <at> disroot.org>, "Maxime Devos" <maximedevos <at> telenet.be>
Cc: 56717 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: Add python-i3ipc.
Date: Sat, 23 Jul 2022 20:46:53 +0800
* gnu/packages/python-xyz.scm (python-i3ipc): New variable.

Signed-off-by: Hilton Chain <hako <at> ultrarare.space>
---
 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 11f709f7b5..d67b535d40 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -124,6 +124,7 @@
 ;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom <at> gmail.com>
 ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
 ;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me <at> jeandudey.tech>
+;;; Copyright © 2022 Hilton Chain <hako <at> ultrarare.space>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -30203,3 +30204,26 @@ (define-public python-bsdiff4
 binary diff utility.  It also provides two command-line tools, @code{bsdiff4}
 and @code{bspatch4}.")
     (license license:bsd-2)))
+
+(define-public python-i3ipc
+  (package
+    (name "python-i3ipc")
+    (version "2.2.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/altdesktop/i3ipc-python")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "13bzs9dcv27czpnnbgz7a037lm8h991c8gk0qzzk5mq5yak24715"))))
+    (build-system python-build-system)
+    (arguments (list #:tests? #f))      ;FIXME: some tests are unable to run
+    (propagated-inputs (list python-xlib))
+    (home-page "https://github.com/altdesktop/i3ipc-python")
+    (synopsis "Python library for controlling i3 and Sway")
+    (description
+     "This package provides a Python library for controlling the i3 and Sway
+ window managers.")
+    (license license:bsd-3)))
-- 
2.36.1





Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 12:54:02 GMT) Full text and rfc822 format available.

Message #56 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: "(" <paren <at> disroot.org>, "Maxime Devos" <maximedevos <at> telenet.be>
Cc: 56717 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: Add i3-autotiling.
Date: Sat, 23 Jul 2022 20:48:19 +0800
* gnu/packages/python-xyz.scm (i3-autotiling): New variable.

Signed-off-by: Hilton Chain <hako <at> ultrarare.space>
---
 gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d67b535d40..fc00779b40 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30227,3 +30227,28 @@ (define-public python-i3ipc
      "This package provides a Python library for controlling the i3 and Sway
  window managers.")
     (license license:bsd-3)))
+
+(define-public i3-autotiling
+  (package
+    (name "i3-autotiling")
+    (version "1.6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/nwg-piotr/autotiling")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1hjlvg7095s322gb43r9g7mqlsy3pj13l827jpnbn5x0918rq9rr"))))
+    (build-system python-build-system)
+    (arguments (list #:tests? #f))      ;no tests
+    (native-inputs (list python-wheel))
+    (propagated-inputs (list python-i3ipc))
+    (home-page "https://github.com/nwg-piotr/autotiling")
+    (synopsis "Automatically tile windows in i3 and Sway")
+    (description
+     "This script uses the python-i3ipc library to switch the layout
+splith/splitv depending on the currently focused window dimensions.  It works on
+both sway and i3 window managers.")
+    (license license:gpl3)))
-- 
2.36.1





Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 12:57:02 GMT) Full text and rfc822 format available.

Message #59 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: "Hilton Chain" <hako <at> ultrarare.space>, "Maxime Devos"
 <maximedevos <at> telenet.be>
Cc: 56717 <at> debbugs.gnu.org
Subject: Re: [PATCH 2/2] gnu: Add i3-autotiling.
Date: Sat, 23 Jul 2022 13:56:25 +0100
On Sat Jul 23, 2022 at 1:48 PM BST, Hilton Chain wrote:
> +    (description
> +     "This script uses the python-i3ipc library to switch the layout
> +splith/splitv depending on the currently focused window dimensions.  It works on
> +both sway and i3 window managers.")
I think you should probably change this one, too. 'splith'/'splitv'
doesn't make much sense as there's no mention of sway or i3 until the
end. Also, sway -> Sway :)

    -- (




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 13:12:01 GMT) Full text and rfc822 format available.

Message #62 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: "(" <paren <at> disroot.org>, "Maxime Devos" <maximedevos <at> telenet.be>
Cc: 56717 <at> debbugs.gnu.org
Subject: [PATCH v4 0/2] gnu: Add python-i3ipc and i3-autotiling.
Date: Sat, 23 Jul 2022 21:08:43 +0800
v3 -> v4: description change for i3-autotiling.

Hilton Chain (2):
  gnu: Add python-i3ipc.
  gnu: Add i3-autotiling.

 gnu/packages/python-xyz.scm | 48 +++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)


base-commit: 32a00363435ac8c1bc93ef1281b2c2afc28a8877
--
2.36.1




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 13:12:02 GMT) Full text and rfc822 format available.

Message #65 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: "(" <paren <at> disroot.org>, "Maxime Devos" <maximedevos <at> telenet.be>
Cc: 56717 <at> debbugs.gnu.org
Subject: [PATCH v4 1/2] gnu: Add python-i3ipc.
Date: Sat, 23 Jul 2022 20:46:53 +0800
* gnu/packages/python-xyz.scm (python-i3ipc): New variable.

Signed-off-by: Hilton Chain <hako <at> ultrarare.space>
---
 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 11f709f7b5..d67b535d40 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -124,6 +124,7 @@
 ;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom <at> gmail.com>
 ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
 ;;; Copyright © 2022 Jean-Pierre De Jesus DIAZ <me <at> jeandudey.tech>
+;;; Copyright © 2022 Hilton Chain <hako <at> ultrarare.space>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -30203,3 +30204,26 @@ (define-public python-bsdiff4
 binary diff utility.  It also provides two command-line tools, @code{bsdiff4}
 and @code{bspatch4}.")
     (license license:bsd-2)))
+
+(define-public python-i3ipc
+  (package
+    (name "python-i3ipc")
+    (version "2.2.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/altdesktop/i3ipc-python")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "13bzs9dcv27czpnnbgz7a037lm8h991c8gk0qzzk5mq5yak24715"))))
+    (build-system python-build-system)
+    (arguments (list #:tests? #f))      ;FIXME: some tests are unable to run
+    (propagated-inputs (list python-xlib))
+    (home-page "https://github.com/altdesktop/i3ipc-python")
+    (synopsis "Python library for controlling i3 and Sway")
+    (description
+     "This package provides a Python library for controlling the i3 and Sway
+ window managers.")
+    (license license:bsd-3)))
--
2.36.1




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 23 Jul 2022 13:13:01 GMT) Full text and rfc822 format available.

Message #68 received at 56717 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: "(" <paren <at> disroot.org>, "Maxime Devos" <maximedevos <at> telenet.be>
Cc: 56717 <at> debbugs.gnu.org
Subject: [PATCH v4 2/2] gnu: Add i3-autotiling.
Date: Sat, 23 Jul 2022 20:48:19 +0800
* gnu/packages/python-xyz.scm (i3-autotiling): New variable.

Signed-off-by: Hilton Chain <hako <at> ultrarare.space>
---
 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 d67b535d40..114d7817fe 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30227,3 +30227,27 @@ (define-public python-i3ipc
      "This package provides a Python library for controlling the i3 and Sway
  window managers.")
     (license license:bsd-3)))
+
+(define-public i3-autotiling
+  (package
+    (name "i3-autotiling")
+    (version "1.6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/nwg-piotr/autotiling")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1hjlvg7095s322gb43r9g7mqlsy3pj13l827jpnbn5x0918rq9rr"))))
+    (build-system python-build-system)
+    (arguments (list #:tests? #f))      ;no tests
+    (native-inputs (list python-wheel))
+    (propagated-inputs (list python-i3ipc))
+    (home-page "https://github.com/nwg-piotr/autotiling")
+    (synopsis "Automatically tile windows in i3 and Sway")
+    (description
+     "Script for Sway and i3 to automatically switch the horizontal/vertical
+ window split orientation.")
+    (license license:gpl3)))
--
2.36.1




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sat, 06 Aug 2022 21:15:02 GMT) Full text and rfc822 format available.

Notification sent to Hilton Chain <hako <at> ultrarare.space>:
bug acknowledged by developer. (Sat, 06 Aug 2022 21:15:02 GMT) Full text and rfc822 format available.

Message #73 received at 56717-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Hilton Chain <hako <at> ultrarare.space>
Cc: "\(" <paren <at> disroot.org>, Maxime Devos <maximedevos <at> telenet.be>,
 56717-done <at> debbugs.gnu.org
Subject: Re: bug#56717: [PATCH 0/2] gnu: Add python-i3ipc and
 python-autotiling.
Date: Sat, 06 Aug 2022 23:14:10 +0200
Hi,

Hilton Chain <hako <at> ultrarare.space> skribis:

>   gnu: Add python-i3ipc.
>   gnu: Add i3-autotiling.

Applied, thank you, and thanks to the reviewers!

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#56717; Package guix-patches. (Sat, 06 Aug 2022 21:15:02 GMT) Full text and rfc822 format available.

Message #76 received at 56717-done <at> debbugs.gnu.org (full text, mbox):

From: "(" <paren <at> disroot.org>
To: Ludovic Courtès <ludo <at> gnu.org>, "Hilton Chain"
 <hako <at> ultrarare.space>
Cc: 56717-done <at> debbugs.gnu.org, Maxime Devos <maximedevos <at> telenet.be>
Subject: Re: bug#56717: [PATCH 0/2] gnu: Add python-i3ipc and
 python-autotiling.
Date: Sat, 06 Aug 2022 22:14:46 +0100
On Sat Aug 6, 2022 at 10:14 PM BST, Ludovic Courtès wrote:
> Applied, thank you, and thanks to the reviewers!

Thanks Ludo! :D

    -- (




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 04 Sep 2022 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 303 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.