import: Add PyPI importer.
authorDavid Thompson <dthompson2@worcester.edu>
Sat, 27 Sep 2014 14:16:23 +0000 (10:16 -0400)
committerDavid Thompson <dthompson2@worcester.edu>
Mon, 29 Sep 2014 23:30:28 +0000 (19:30 -0400)
commit1b3e968512ebbccf02d00c52f7e089156946f445
treec45d203439ab9a74d01f2c76850cafb847a755e2
parent2efb3ddaa434b86a841dffbba89e21d2d9208526
import: Add PyPI importer.

* guix/snix.scm: Delete.
* guix/import/snix.scm: New file.
* guix/import/pypi.scm: New file.
* guix/import/utils.scm: New file.
* guix/scripts/import/nix.scm: New file.
* guix/scripts/import/pypi.scm: New file.
* tests/pypi.scm: New file.
* tests/snix.scm: Import (guix import snix) module.
* guix/scripts/import.scm (%default-options, %options): Delete.
  (%standard-import-options, importers): New variables.
  (show-help): List importers.
  (guix-import): Factor out Nix-specific logic.  Delegate to correct importer
  based upon first argument.
* configure.ac (HAVE_GUILE_JSON): New conditional.
* Makefile.am (MODULES): Add new files and remove 'guix/snix.scm'.
  (SCM_TESTS): Add 'tests/pypi.scm' if guile-json is installed.
Makefile.am
configure.ac
guix/import/pypi.scm [new file with mode: 0644]
guix/import/snix.scm [moved from guix/snix.scm with 93% similarity]
guix/import/utils.scm [new file with mode: 0644]
guix/scripts/import.scm
guix/scripts/import/nix.scm [new file with mode: 0644]
guix/scripts/import/pypi.scm [new file with mode: 0644]
tests/pypi.scm [new file with mode: 0644]
tests/snix.scm