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: Mon, 19 Sep 2016 14:44:38 +0200 Message-ID: <20160919124438.GA19077@sax.terramar.selidor.net> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blxwD-0005Bw-Rz for guix-devel@gnu.org; Mon, 19 Sep 2016 08:44:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blxw9-0006aS-7V for guix-devel@gnu.org; Mon, 19 Sep 2016 08:44:45 -0400 Received: from lev.selidor.net ([2600:3c03:e001:1100::1]:42906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blxw9-0006ZT-2C for guix-devel@gnu.org; Mon, 19 Sep 2016 08:44:41 -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 --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thanks to Brendan Tildesley, Leo Famulari and Hartmut Goebel for testing and advice. * gnu/packages/wm.scm (python-i3-py, python2-i3-py): New variables. --- gnu/packages/wm.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 6275e6f..39ecb20 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,49 @@ 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 + (alist-cons-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 "-" ,version))) + (mkdir-p doc) + (copy-file "README.md" (string-append doc "/README.md")))) + %standard-phases))) + (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/ --pf9I7BMVVzbSWLtt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJX3922AAoJED3swQX13SOCFO4P/iIF6+HdyTVI5FMNnwP+OliY g24RpiKmqVY8idsTD8DeZbAZZzihyc7as3fcfK0U0Yj6piFLtEie0tKketVDoUrt R/RdHdgW4vORdxcekm7x1QSpfi4NFvJAeSKHKGFuZI2OSCf3bLWnkLNCr+6JVVdw dxQfjztnGbkO3PN90v0KYzF4xw/9Z5QV0Pqsnmiigjzj+UhrGR3IOd1XYEj44Drn 446eNWK1GDdP2v2WWnvwFznx6cpbeC6I6juuhx/Y/RjCT5UqN6mB7pqA7RTXEpvp AvXScWHM0K7cWs8LJ0k5sdFTzDOEq0FGgilrr7tpWWBnQLWPcKfMYNoBWOtlyN88 KCfdGsdBP0B2dqcAeLbq15ZW9bJ1sBY3Ib3E4OiEHt/tcZU/7wqBhh+xo1O9sRNa kW4B4VfMC030r7agNp0KLudy24qT8K3yZabuNJpe71I9i9D8ndX56uVHM68GT/kD 6ellMVAyoAOZjxVHn58iXss3on49FHz2QA7HnIl+5QWq159DnroMu65X+eAQLtGw zsn+bXN97sLOLJx9x0us4p2FbS0hGQxDBM0lSvleWcgqP1uI2z4QY/FT72RBR73u 4Zk24bUw7J83L453C8ad5PXXNNc32abPHT8i9+WHKwW9UrxVPK45gLOou5LUEjD+ /R6KLyakNpB9sWrUKCY1 =0vdO -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt--