guix: Add lint-checker for packages which should be no inputs at all.
authorHartmut Goebel <h.goebel@crazy-compilers.com>
Wed, 28 Sep 2016 09:36:35 +0000 (11:36 +0200)
committerHartmut Goebel <h.goebel@crazy-compilers.com>
Tue, 15 Nov 2016 16:37:49 +0000 (17:37 +0100)
commit891a843d5184f696618af6fcbb9791ef6b574504
tree0c63c4d6db9195751d8b64c1980b0fe3a1237743
parent15e57f576291d9233ab25e1614c6218579db170a
guix: Add lint-checker for packages which should be no inputs at all.

Also refactor some common code into a new function.

Examples for these pacakges are python(2)-setuptools and python(2)-pip, which
are installed together with python itself.

* guix/scripts/lint.scm (warn-if-package-has-input): New procedure.
  (check-inputs-should-be-native package): Use it; rename and clean-up
  variables. (check-inputs-should-not-be-an-input-at-all): New procedure.
  (%checkers) Add it.
* doc/guix.texi (Python Modules): Document it.
* tests/lint.scm: ("inputs: python-setuptools should not be an input at all
  (input)", "inputs: python-setuptools should not be an input at all
  (native-input)" "inputs: python-setuptools should not be an input at all
  (propagated-input)"): Add tests.
doc/guix.texi
guix/scripts/lint.scm
tests/lint.scm