<feed xmlns='http://www.w3.org/2005/Atom'>
<title>guix.git/tests/hackage.scm, branch master</title>
<subtitle>Personal branch of https://git.savannah.gnu.org/cgit/guix.git/ for implementing 'guix deploy'.
</subtitle>
<id>https://www.git.jakob.space/guix.git/atom?h=master</id>
<link rel='self' href='https://www.git.jakob.space/guix.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/'/>
<updated>2019-06-20T12:07:01Z</updated>
<entry>
<title>import: hackage: Add two expected failing test cases.</title>
<updated>2019-06-20T12:07:01Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-06-16T14:55:36Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=b46a9b9a5e833989396565c9d924cc97ce080703'/>
<id>urn:sha1:b46a9b9a5e833989396565c9d924cc97ce080703</id>
<content type='text'>
This adds failing test cases for two hackage import bugs:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25138
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=35743

* tests/hackage.scm: Make comment style consistent. Add two
cabal parsing tests, marked as expected failures.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>import: hackage: Handle Hackage revisions.</title>
<updated>2019-06-14T02:18:52Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-06-13T19:39:14Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=ca45da9fc9b1eee399ce4344b18cbb129daeca4c'/>
<id>urn:sha1:ca45da9fc9b1eee399ce4344b18cbb129daeca4c</id>
<content type='text'>
Hackage packages can have metadata revisions (Cabal file only) that are
not reflected in the source archive.  The Haskell build system has
support for this, but until now the Hackage importer would create a
package based on the revised Cabal file which would then build using the
old Cabal file.

Fixes &lt;https://bugs.gnu.org/35750&gt;.

* guix/import/cabal.scm (&lt;cabal-package&gt;): Add 'revision' field.
(eval-cabal): Parse 'x-revision:' property.
* guix/import/hackage.scm (read-cabal-and-hash): New procedure.
(hackage-fetch-and-hash): New procedure.
(hackage-fetch): Rewrite using 'hackage-fetch-and-hash'.
(hackage-module-&gt;sexp): Add 'cabal-hash' argument and use it to populate
the '#:cabal-revision' argument.
(hackage-&gt;guix-package): Use the new '-and-hash' functions to get the
hash of the Cabal file and pass it to 'hackage-module-&gt;sexp'.
* guix/tests/hackage.scm: Test import of Cabal file revision.

Signed-off-by: Timothy Sample &lt;samplet@ngyro.com&gt;
</content>
</entry>
<entry>
<title>import: hackage: Parse braced properties.</title>
<updated>2019-06-02T20:16:05Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-06-01T22:27:50Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=959c9d159da2c53b87ae0af1421aecac98b20f46'/>
<id>urn:sha1:959c9d159da2c53b87ae0af1421aecac98b20f46</id>
<content type='text'>
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-&gt;guix-package test multiline desc"): Rename to...
("hackage-&gt;guix-package test multiline desc (layout)"): ... this.
(test-cabal-multiline-braced): New variable.
("hackage-&gt;guix-package test multiline desc (braced)"): New test.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>tests: hackage: Test multiline cabal description.</title>
<updated>2019-06-02T20:12:19Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-06-01T22:27:49Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=64d31813577b7471f819652e3ec81abb285bb77c'/>
<id>urn:sha1:64d31813577b7471f819652e3ec81abb285bb77c</id>
<content type='text'>
* tests/hackage.scm (test-cabal-multiline-desc): New variable.
("hackage-&gt;guix-package test multiline desc"): New test.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>tests: Fix hackage tests.</title>
<updated>2019-06-02T20:07:53Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-06-01T22:16:02Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=ea35f5c599a2fe4d6ab2925b1030f64e8b21e195'/>
<id>urn:sha1:ea35f5c599a2fe4d6ab2925b1030f64e8b21e195</id>
<content type='text'>
This is a followup to 1cc12357a65e4479c2f4735e915941382ef82d94.

* tests/hackage.scm: ghc-mtl is no longer added as an input.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>tests: Indent hackage tests</title>
<updated>2019-06-01T13:26:30Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-05-31T21:22:43Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=0be465924c6f745618a73eea816aa15aba7c8d30'/>
<id>urn:sha1:0be465924c6f745618a73eea816aa15aba7c8d30</id>
<content type='text'>
* tests/hackage.scm: Reindent using etc/indent-code.el.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>tests: hackage: Don't mock hackage-fetch.</title>
<updated>2019-06-01T13:26:30Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-05-31T21:22:42Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=4110cde00560bd97cc8d83c34b80c52f37c680a2'/>
<id>urn:sha1:4110cde00560bd97cc8d83c34b80c52f37c680a2</id>
<content type='text'>
* tests/hackage.scm: Pass a string input port to tests instead of
mocking hackage download.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>tests: hackage: Factor out package pattern.</title>
<updated>2019-06-01T13:26:30Z</updated>
<author>
<name>Robert Vollmert</name>
<email>rob@vllmrt.net</email>
</author>
<published>2019-05-31T21:22:41Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=55c98f3261b6ced2c38e060566e1eb952bd3e42b'/>
<id>urn:sha1:55c98f3261b6ced2c38e060566e1eb952bd3e42b</id>
<content type='text'>
* tests/hackage.scm: Import result pattern matching via helper.

Signed-off-by: Ludovic Courtès &lt;ludo@gnu.org&gt;
</content>
</entry>
<entry>
<title>import: hackage: Fix Cabal test.</title>
<updated>2019-05-26T21:20:30Z</updated>
<author>
<name>Ludovic Courtès</name>
<email>ludo@gnu.org</email>
</author>
<published>2019-05-26T21:18:21Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=ad7466aafd7f166d0b6be5eb32dda1d3ee8a6445'/>
<id>urn:sha1:ad7466aafd7f166d0b6be5eb32dda1d3ee8a6445</id>
<content type='text'>
* guix/import/hackage.scm (hackage-&gt;guix-package): Remove call to 'memoize'.
(hackage-&gt;guix-package/m): New procedure.
(hackage-recursive-import): Use it.
* tests/hackage.scm ("hackage-&gt;guix-package test 6"): Adjust.

Co-authored-by: Robert Vollmert &lt;rob@vllmrt.net&gt;
</content>
</entry>
<entry>
<title>import: hackage: Evaluate "-any" and "-none" version comparison operators.</title>
<updated>2018-07-12T18:35:04Z</updated>
<author>
<name>Danny Milosavljevic</name>
<email>dannym@scratchpost.org</email>
</author>
<published>2018-07-12T12:17:08Z</published>
<link rel='alternate' type='text/html' href='https://www.git.jakob.space/guix.git/commit/?id=e39a44f34010e4439fc3fc4925b3f26b7ca6d719'/>
<id>urn:sha1:e39a44f34010e4439fc3fc4925b3f26b7ca6d719</id>
<content type='text'>
* guix/import/cabal.scm (eval-cabal): Modify.
* tests/hackage.scm (test-cabal-4): New variable and test.
(test-cabal-5): New variable and test.
(test-cabal-6): New variable and test.
</content>
</entry>
</feed>
