This patch contains the changes where removing setuptools from the inputs affected some code-lines beside. * gnu/packages/admin.scm (ansible): Remove all [inputs], [native-inputs] and [propagated-inputs] where python-setuptools or python2-setuptools are the sole entries. Remove python-setuptools and python2-setuptools listed on a line by its own from [inputs], [native-inputs] and [propagated-inputs]. * gnu/packages/backup.scm (duplicity): Likewise. * gnu/packages/bioinformatics.scm (bamm, python2-pybedtools, python2-bx-python, python2-dendropy, python-pysam, python2-pysam, clipper, crossmap, cutadapt, deeptools, grit, idr, python2-warpedlmm, pbtranscript-tofu, seqmagick): Likewise. * gnu/packages/docbook.scm (dblatex): Likewise. * gnu/packages/freedesktop.scm (python-pyxdg, python2-pyxdg): Likewise. * gnu/packages/lirc.scm (python2-lirc): Likewise. * gnu/packages/mp3.scm (eyed3): Likewise. * gnu/packages/nutrition.scm (gourmet): Likewise. * gnu/packages/openstack.scm (python-hacking, python2-hacking, python-os-testr, python2-os-testr, python-stevedore, python2-stevedore, python-tempest-lib, python2-tempest-lib, python-oslo.log, python2-oslo.log, python-keystoneclient, python2-keystoneclient): Likewise. * gnu/packages/password-utils.scm (assword): Likewise. * gnu/packages/python.scm (python-passlib, python2-passlib, python-babel, python2-babel, python-parse-type, python-pytest, python2-pytest, python-scripttest, python2-scripttest, python-testtools, python2-testtools, python-testscenarios, python2-testscenarios, python-subunit, python2-subunit, python-pbr-0.11, python-pbr, python2-pbr, python-testrepository, python2-testrepository, behave, python-wheel, python2-wheel, python-requests, python2-requests, python-jsonschema, python2-jsonschema, python-pyjwt, python2-pyjwt, python-virtualenv, python2-virtualenv, python-jinja2, python2-jinja2, python-joblib, python2-joblib, python-sphinx, python2-sphinx, python-feedgenerator, python2-feedgenerator, python-scikit-image, python2-scikit-image, python-redis, python2-redis, python2-fastlmm, python-numpydoc, python2-numpydoc, python-matplotlib, python2-matplotlib, python2-pysnptools, python-rpy2, python2-rpy2, python-pillow, python2-pillow, python-pycparser, python2-pycparser, python-cffi, python2-cffi, python-cairocffi, python2-cairocffi, python-drmaa, python2-drmaa, python-pathpy, python2-pathpy, python-simplegeneric, python2-simplegeneric, python-ipython, python2-ipython, python-apsw, python2-apsw, python-lxml, python2-lxml, python-networkx, python2-networkx, python-pyzmq, python2-pyzmq, python-mccabe, python2-mccabe, python-mccabe-0.2.1, python-flake8, python2-flake8, python-flake8-2.2.4, python-mistune, python2-mistune, python-ptyprocess, python2-ptyprocess, python-llfuse, python2-llfuse, python-webob, python2-webob, python-xlrd, python2-xlrd, python-tables, python2-tables, python-pip, python2-pip, python-libarchive-c, python2-libarchive-c, python-docopt, python2-docopt, python-pyrfc3339, python2-pyrfc3339, python-configobj, python2-configobj, python-clint, python2-clint, python-rply, python2-rply, python2-rpython, python-widgetsnbextension, python2-widgetsnbextension jupyter, python-jupyter-console, python2-jupyter-console, python-hy, python2-hy, python-urllib3, python2-urllib3, python-rsa, python2-rsa, python-tox, python2-tox, python2-hypothesis, python-paste, python2-paste, python-pastescript, python2-pastescript, python2-unicodecsv, python-pkgconfig, python2-pkgconfig, python2-rope, python-sqlparse, python2-sqlparse, python-gevent, python2-gevent, python-tabulate, python2-tabulate, python-arrow, python2-arrow, python-cleo, python2-cleo, python-fake-factory, python2-fake-factory, ptpython): Likewise. * gnu/packages/rdf.scm (python-rdflib, python2-rdflib): Likewise. * gnu/packages/terminals.scm (asciinema): Likewise. * gnu/packages/version-control.scm (git-annex-remote-hubic): Likewise. * gnu/packages/xdisorg.scm (arandr): Likewise.
		
			
				
	
	
		
			137 lines
		
	
	
	
		
			5.5 KiB
		
	
	
	
		
			Scheme
		
	
	
	
	
	
			
		
		
	
	
			137 lines
		
	
	
	
		
			5.5 KiB
		
	
	
	
		
			Scheme
		
	
	
	
	
	
;;; GNU Guix --- Functional package management for GNU
 | 
						|
;;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com>
 | 
						|
;;;
 | 
						|
;;; This file is part of GNU Guix.
 | 
						|
;;;
 | 
						|
;;; GNU Guix is free software; you can redistribute it and/or modify it
 | 
						|
;;; under the terms of the GNU General Public License as published by
 | 
						|
;;; the Free Software Foundation; either version 3 of the License, or (at
 | 
						|
;;; your option) any later version.
 | 
						|
;;;
 | 
						|
;;; GNU Guix is distributed in the hope that it will be useful, but
 | 
						|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
						|
;;; GNU General Public License for more details.
 | 
						|
;;;
 | 
						|
;;; You should have received a copy of the GNU General Public License
 | 
						|
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
 | 
						|
 | 
						|
(define-module (gnu packages lirc)
 | 
						|
  #:use-module (guix packages)
 | 
						|
  #:use-module (guix download)
 | 
						|
  #:use-module (guix git-download)
 | 
						|
  #:use-module (guix build-system gnu)
 | 
						|
  #:use-module (guix build-system python)
 | 
						|
  #:use-module ((guix licenses) #:prefix license:)
 | 
						|
  #:use-module (gnu packages)
 | 
						|
  #:use-module (gnu packages pkg-config)
 | 
						|
  #:use-module (gnu packages libusb)
 | 
						|
  #:use-module (gnu packages linux)
 | 
						|
  #:use-module (gnu packages xml)
 | 
						|
  #:use-module (gnu packages xorg)
 | 
						|
  #:use-module (gnu packages python))
 | 
						|
 | 
						|
(define-public lirc
 | 
						|
  (package
 | 
						|
    (name "lirc")
 | 
						|
    (version "0.9.4")
 | 
						|
    (source (origin
 | 
						|
              (method url-fetch)
 | 
						|
              (uri (string-append "mirror://sourceforge/lirc/LIRC/" version
 | 
						|
                                  "/lirc-" version ".tar.bz2"))
 | 
						|
              (sha256
 | 
						|
               (base32
 | 
						|
                "1l2xzhnm4hrla51ik09hcafki0y8wnww7svfm7j63zbl2rssc66x"))
 | 
						|
              (patches (search-patches "lirc-localstatedir.patch"))))
 | 
						|
    (build-system gnu-build-system)
 | 
						|
    (arguments
 | 
						|
     '(#:configure-flags '("--localstatedir=/var")
 | 
						|
       #:phases
 | 
						|
       (modify-phases %standard-phases
 | 
						|
         (add-after 'unpack 'patch-lirc-make-devinput
 | 
						|
           (lambda* (#:key inputs #:allow-other-keys)
 | 
						|
             ;; 'lirc-make-devinput' script assumes that linux headers
 | 
						|
             ;; are placed in "/usr/...".
 | 
						|
             (let ((headers (assoc-ref inputs "linux-headers")))
 | 
						|
               (substitute* "tools/lirc-make-devinput"
 | 
						|
                 (("/usr/include") (string-append headers "/include"))))
 | 
						|
             #t))
 | 
						|
         (add-after 'unpack 'patch-doc/Makefile.in
 | 
						|
           (lambda _
 | 
						|
             ;; Lirc wants to install several images and a useless html page
 | 
						|
             ;; to "$(localstatedir)/lib/lirc/".  This makes 'install' phase
 | 
						|
             ;; fail as localstatedir is "/var", so do not install these
 | 
						|
             ;; files there (the same images are installed in
 | 
						|
             ;; "share/doc/lirc/images/" anyway).
 | 
						|
             (substitute* "doc/Makefile.in"
 | 
						|
               (("^vardocs_DATA =.*") "vardocs_DATA =\n")
 | 
						|
               (("^varimage_DATA =.*") "varimage_DATA =\n"))
 | 
						|
             #t)))))
 | 
						|
    (native-inputs
 | 
						|
     `(("pkg-config" ,pkg-config)
 | 
						|
       ("libxslt" ,libxslt)))
 | 
						|
    (inputs
 | 
						|
     `(("libx11" ,libx11)
 | 
						|
       ("libusb-compat" ,libusb-compat)
 | 
						|
       ("linux-headers" ,linux-libre-headers)
 | 
						|
       ("alsa-lib" ,alsa-lib)
 | 
						|
       ("python" ,python)))
 | 
						|
    (home-page "http://www.lirc.org/")
 | 
						|
    (synopsis "Linux Infrared Remote Control")
 | 
						|
    (description
 | 
						|
     "LIRC allows computers to send and receive IR signals of many commonly
 | 
						|
used remote controls.  The most important part of LIRC is the 'lircd' daemon
 | 
						|
that decodes IR signals received by the device drivers.  The second daemon
 | 
						|
program 'lircmd' allows to translate IR signals to mouse movements.  The
 | 
						|
user space applications allow you to control your computer with a remote
 | 
						|
control: you can send X events to applications, start programs and much more
 | 
						|
on just one button press.")
 | 
						|
    (license license:gpl2+)))
 | 
						|
 | 
						|
(define-public python-lirc
 | 
						|
  (let ((commit "4091fe918f3eed2513dad008828565cace408d2f")
 | 
						|
        (revision "1"))
 | 
						|
    (package
 | 
						|
      (name "python-lirc")
 | 
						|
      (version (string-append "1.2.1-" revision "." (string-take commit 7)))
 | 
						|
      (source
 | 
						|
        (origin
 | 
						|
          (method git-fetch)
 | 
						|
          (uri (git-reference
 | 
						|
                 (url "https://github.com/tompreston/python-lirc.git")
 | 
						|
                 (commit commit)))
 | 
						|
          (sha256
 | 
						|
            (base32
 | 
						|
              "0cm47s5pvijfs3v2k7hmpxv3mvp4n5la0ihnsczk5ym3iq166jil"))
 | 
						|
          (file-name (string-append name "-" version))))
 | 
						|
      (build-system python-build-system)
 | 
						|
      (inputs
 | 
						|
       `(("lirc" ,lirc)))
 | 
						|
      (native-inputs
 | 
						|
       `(("python-cython" ,python-cython)))
 | 
						|
      (arguments
 | 
						|
       `(#:tests? #f ; the only tests that exist are human-interactive
 | 
						|
         #:phases
 | 
						|
         (modify-phases %standard-phases
 | 
						|
           (add-before 'build 'build-from-cython-files
 | 
						|
             (lambda _
 | 
						|
               (zero? (system* "make" "py3")))))))
 | 
						|
      (home-page "https://github.com/tompreston/python-lirc")
 | 
						|
      (synopsis "Python bindings for LIRC")
 | 
						|
      (description "@code{lirc} is a Python module which provides LIRC bindings.")
 | 
						|
      (license license:gpl3)
 | 
						|
      (properties `((python2-variant . ,(delay python2-lirc)))))))
 | 
						|
 | 
						|
  (define-public python2-lirc
 | 
						|
    (let ((base (package-with-python2 (strip-python2-variant python-lirc))))
 | 
						|
      (package
 | 
						|
        (inherit base)
 | 
						|
        (arguments
 | 
						|
         `(#:tests? #f ; the only tests that exist are human-interactive
 | 
						|
           #:phases
 | 
						|
           (modify-phases %standard-phases
 | 
						|
             (add-before 'build 'build-from-cython-files
 | 
						|
               (lambda _
 | 
						|
                 (zero? (system* "make" "py2")))))))
 | 
						|
        (native-inputs
 | 
						|
         `(("python2-cython" ,python2-cython))))))
 |