import: Factorize utility functions.
authorEric Bavier <bavier@member.fsf.org>
Thu, 8 Jan 2015 20:38:54 +0000 (14:38 -0600)
committerEric Bavier <bavier@member.fsf.org>
Fri, 9 Jan 2015 16:33:24 +0000 (10:33 -0600)
commit1ff2619bc114aface6b7b9d818f7208f9af677df
tree499f0d9f102b05bbb26e14a7a8e7b431231be509
parentc6cb82f5d5739fcc84281e5dc91076c37f1db89c
import: Factorize utility functions.

* guix/import/pypi.scm (hash-table->alist, flatten, assoc-ref*,
  url-fetch, json-fetch): Pull procedures from here into...
* guix/import/utils.scm: Here and...
* guix/import/json.scm: Here.  New file.
* Makefile.am (MODULE)[HAVE_GUILE_JSON]: Add it.
* guix/import/gnu.scm (file-sha256): Move from here to...
* guix/hash.scm: Here.
* tests/pypi.scm (pypi->guix-package): Update mock module reference.
Makefile.am
guix/hash.scm
guix/import/gnu.scm
guix/import/json.scm [new file with mode: 0644]
guix/import/pypi.scm
guix/import/utils.scm
tests/pypi.scm