guix-devel/guix/import
Robert Vollmert 959c9d159d
import: hackage: Parse braced properties.
This adds partial support for Cabal properties that use curly
braces instead of the layout rule.  See for example
https://hackage.haskell.org/package/cassava/

* guix/import/cabal.scm (read-braced-value): New procedure.
(is-property): Remove.
(is-layout-property, is-braced-property): New variables.
(lex-property): Rename to...
(lex-layout-property): ... this.
(lex-braced-property, lex-property): New procedures.
(lex-token): Add call to 'lex-property'.
* guix/tests/hackage.scm: Test braced description import.
* tests/hackage.scm (test-cabal-multiline-desc): Rename to...
(test-cabal-multiline-layout): ... this.
("hackage->guix-package test multiline desc"): Rename to...
("hackage->guix-package test multiline desc (layout)"): ... this.
(test-cabal-multiline-braced): New variable.
("hackage->guix-package test multiline desc (braced)"): New test.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2019-06-02 22:16:05 +02:00
..
cabal.scm import: hackage: Parse braced properties. 2019-06-02 22:16:05 +02:00
cpan.scm Switch to Guile-Gcrypt. 2018-09-04 17:25:11 +02:00
cran.scm import: cran: Ignore invalid packages from the system requirements. 2019-05-28 23:56:59 +02:00
crate.scm Switch to Guile-Gcrypt. 2018-09-04 17:25:11 +02:00
elpa.scm Switch to Guile-Gcrypt. 2018-09-04 17:25:11 +02:00
gem.scm import: gem: Add recursive import. 2018-07-11 07:08:54 +03:00
github.scm import: github: Sort releases before picking the latest one. 2019-05-15 13:29:50 +05:30
gnome.scm
gnu.scm Switch to Guile-Gcrypt. 2018-09-04 17:25:11 +02:00
hackage.scm import: hackage: Update list of ghc-included packages. 2019-06-01 06:22:57 +02:00
json.scm import: json: Handle the error case. 2018-10-16 23:17:36 +02:00
launchpad.scm import: Add Launchpad updater. 2019-03-18 20:55:55 +05:30
opam.scm import: opam: Use dune-build-system when possible. 2019-04-10 21:39:04 +02:00
print.scm import: Add package->code. 2017-09-28 13:10:10 +02:00
pypi.scm gnu: Use pypi.org. 2018-10-18 23:46:33 -04:00
snix.scm build: Remove checks for 'nix-instantiate'. 2018-06-18 23:19:51 +02:00
stackage.scm guix: import: stackage: Fix JSON accessors. 2018-10-01 12:12:08 +02:00
texlive.scm Switch to Guile-Gcrypt. 2018-09-04 17:25:11 +02:00
utils.scm Switch to Guile-Gcrypt. 2018-09-04 17:25:11 +02:00