From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Vilata i Balaguer Subject: [PATCH 1/2] gnu: wm: Add python-i3-py. Date: Wed, 21 Sep 2016 11:19:07 +0200 Message-ID: <20160921091907.GA2619@sax.terramar.selidor.net> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="DocE+STaALJfprDB" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmdgb-000470-3Y for guix-devel@gnu.org; Wed, 21 Sep 2016 05:19:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmdgQ-0003HJ-D2 for guix-devel@gnu.org; Wed, 21 Sep 2016 05:19:23 -0400 Received: from lev.selidor.net ([2600:3c03:e001:1100::1]:53644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmdgQ-0003Dz-9P for guix-devel@gnu.org; Wed, 21 Sep 2016 05:19:14 -0400 Content-Disposition: inline In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --DocE+STaALJfprDB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thanks to Brendan Tildesley, Leo Famulari, Hartmut Goebel and Alex Kost for testing and advice. * gnu/packages/wm.scm (python-i3-py, python2-i3-py): New variables. --- gnu/packages/wm.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 6275e6f..ea73d26 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -34,6 +34,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system haskell) + #:use-module (guix build-system python) #:use-module (gnu packages haskell) #:use-module (gnu packages base) #:use-module (gnu packages pkg-config) @@ -202,6 +203,48 @@ from scratch. i3 is primarily targeted at advanced us= ers and developers.") (license license:bsd-3))) =20 +(define-public python-i3-py + (package + (name "python-i3-py") + (version "0.6.5") + (source + (origin + ;; The latest release is not tagged in Git nor has an entry in PyPi, + ;; but there is still a clear commit for it, and it's been the last= one + ;; for years. + (method git-fetch) + (uri (git-reference + (url "https://github.com/ziberna/i3-py.git") + (commit "27f88a616e9ecc340e7d041d3d00782f8a1964c1"))) + (sha256 + (base32 + "1nm719dc2xqlll7vj4c4m7mpjb27lpn3bg3c66gajvnrz2x1nmxs")) + (file-name (string-append name "-" version "-checkout")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; no tests yet + #:phases (modify-phases %standard-phases + (add-after 'install 'install-doc + ;; Copy readme file to documentation directory. + (lambda* (#:key outputs #:allow-other-keys) + (let ((doc (string-append (assoc-ref outputs "out") + "/share/doc/" ,name))) + (install-file "README.md" doc) + ;; Avoid unspecified return value. + #t)))))) + (propagated-inputs + `(("i3-wm" ,i3-wm))) + (home-page "https://github.com/ziberna/i3-py") + (synopsis "Python interface to the i3 window manager") + (description "This package allows you to interact from a Python program +with the i3 window manager via its IPC socket. It can send commands and o= ther +kinds of messages to i3, select the affected containers, filter results and +subscribe to events.") + (license license:gpl3+))) + +(define-public python2-i3-py + (package-with-python2 python-i3-py)) + (define-public xmonad (package (name "xmonad") --=20 2.10.0 --=20 Ivan Vilata i Balaguer -- https://elvil.net/ --DocE+STaALJfprDB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX4lCLAAoJED3swQX13SOC3qcP/itnh5zi3qAXHmPrB/9FFIyU 7AKIg+IQdr82FP3qe8rdODu6tqipz4OOShscdzlCXBI72o07kggq2JK2tNHTt1Au vqnAjC7P94YrPKAN8ToidBNTdawt5XeoT8KPGfmprMzd26tmspk3CDG4y6BZdly+ ze63U2xtYUDYnIOACtQvjVLzmh6wGOn+dkUoBTU2WUL+7/3eT2IViV5LqFlh2A5j k3IZtJQCsu8f3sb7oPWphBcTxXr+YWWBmvDNYV/HycSzpTmWX+y0Ow89+ZX7OR2W BTgS/gH/i6uSJs65nEAhJqr3JaOBuGVaAPb4TlNjM1+1dwd5YFoSmMX2JMFSKjc3 PV1yBIlL4r4ENwDuP42UthiBLFszkrPJcLWzUHM7V3VmBLqr/ghGzlkxS2jStaLS ojG0Z2vaweEhmtYctoXrfSO+lnBgxO45qbFjD0BacY8eio0YMlaxgqJO0XEuOHPi 19G+C5QV+0cUeVAwrnzIB9hm61MDevSILVVLXFGXO3/I7GfZLhCYb7effIFHp4AX mRZhzMsdqzNQn/R6GYvFkEGVGbfr2IJuigck1QtZBDLowt+gMZ5C7Rc4uOZmAWPM rIapXLpGUZln0eh3mnJquvqD+IonK/2zMAYucE3IxlK6B+/d+ZauR0r8NfTfwnlv vXyJWsV8VjJX96ufNkho =xE3i -----END PGP SIGNATURE----- --DocE+STaALJfprDB--