summaryrefslogtreecommitdiff
path: root/guix/import
AgeCommit message (Expand)Author
2017-01-28Add (guix memoization)....* guix/combinators.scm (memoize): Remove. * guix/memoization.scm: New file. * Makefile.am (MODULES): Add it. * gnu/packages.scm, gnu/packages/bootstrap.scm, guix/build-system/gnu.scm, guix/build-system/python.scm, guix/derivations.scm, guix/gnu-maintenance.scm, guix/import/cran.scm, guix/import/elpa.scm, guix/modules.scm, guix/scripts/build.scm, guix/scripts/graph.scm, guix/scripts/lint.scm, guix/store.scm, guix/utils.scm: Adjust imports accordingly. Ludovic Courtès
2017-01-28import: github: Better tolerate unexpected file extensions....* guix/import/github.scm (find-extension): Add ".tbz". (updated-github-url): When 'find-extension' returns #f, use "" for EXT. Ludovic Courtès
2017-01-26import: pypi: Don't add setuptools to propagated-inputs....* guix/import/pypi.scm (compute-inputs): Don't add setuptools to the imported package's propagated-inputs. Carlo Zancanaro
2017-01-19import: github: Catch HTTP 403 error during fetch....* guix/import/github.scm (json-fetch*): Catch 403 HTTP error that may be raised if a github token has not been set. Signed-off-by: Mathieu OTHACEHE <m.othacehe@gmail.com> Signed-off-by: Ludovic Courtès <ludo@gnu.org> Mathieu OTHACEHE
2017-01-13http-client: Provide 'User-Agent' header by default....* guix/http-client.scm (http-fetch): Add #:headers parameter and honor it. Rename 'auth-header' to 'headers'. * guix/import/github.scm (json-fetch*): Add comment about required User-Agent. Ludovic Courtès
2017-01-13import: github: Fix regression on the /releases retrieval....Fixes a regression introduced in 62bd24db39a86f80242f923eb4cc2f18f3b02c67, which introduced a call to 'hash-table->alist'. * guix/import/github.scm (json-fetch*): New procedure. (latest-released-version): Use it. Ludovic Courtès
2017-01-01build-system: cargo: Handle Cargo.lock file not present....* guix/build-system/cargo.scm (cargo-build): Add src output. (private-keywords): Add #:outputs. * guix/build/cargo-build-system.scm (configure): Use /share/rust-source when replacing inputs. (build, check): Don't do anything when there isn't a Cargo.lock file present. (install): Install sources to src output. When a Cargo.lock file is present use cargo install to install binaries to out. * guix/import/crate.scm (make-crate-sexp): Importer uses the src output for crate inputs by default. * guix/import/utils.scm (package-names->package-inputs, maybe-inputs, maybe-native-inputs): Take an optional output argument. * tests/crate.scm (crate->guix-package test): Update. Problem reported by Francisco Gómez García <espectalll@kydara.com>. David Craven
2017-01-01import: crate: Provide a default home-page value....* guix/import/crate.scm (make-crate-sexp): Provide a default home-page value. * tests/crate.scm (test-crate): Add repository field. Problem reported by ng0 <ng0@libertad.pw>. David Craven
2016-12-29import: elpa: Import dependencies as propagated-inputs...* guix/import/elpa.scm (elpa-package->sexp): Import dependencies as propagated-inputs. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Carlo Zancanaro
2016-12-29import: elpa: Fix call-with-downloaded-file...* guix/import/elpa.scm (call-with-downloaded-file): Make function behaviour match documentation string. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Carlo Zancanaro
2016-12-20import: github: Use 'json-fetch'....* guix/import/github.scm (json-fetch*): Remove. (latest-released-version): Adjust accordingly. Ludovic Courtès
2016-12-20import: pypi: Match new 'pypi-uri' domain in updater....* guix/import/pypi.scm (pypi-package?): Match pypi.io domain. Marius Bakke
2016-12-17import cran: Handle HTTP errors....Fixes <http://bugs.gnu.org/23479>. * guix/import/cran.scm (fetch-description): Return #f in case of HTTP errors. Ricardo Wurmus
2016-12-17import cran: Add recursive importer....* guix/import/cran.scm (recursive-import): New variable. (cran->guix-package): Memoize the procedure. Ricardo Wurmus
2016-12-17import cran: Ignore default R packages....* guix/import/cran.scm (default-r-packages): New variable. (description->package): Drop default R packages from list of inputs. Ricardo Wurmus
2016-12-17import cran: description->package: Also return package dependencies....* guix/import/cran.scm (description->package): Return package dependencies in addition to generated package expression. Ricardo Wurmus
2016-12-17import cran: Move guix-name to top-level....* guix/import/cran.scm (guix-name): Move to top-level. Ricardo Wurmus
2016-12-17import cran: Remove more invalid characters from package names....* guix/import/cran.scm (guix-name): Replace period and underscore with dash; always prepend package names with "r-". Ricardo Wurmus
2016-12-17import cran: Handle BSD licenses with LICENSE file....* guix/import/cran.scm (string->license): Add cases for BSD licenses with LICENSE file. Ricardo Wurmus
2016-12-17import cran: Translate MIT to the Expat license....* guix/import/cran.scm (string->license): Translate "MIT" license to Expat license. Ricardo Wurmus
2016-12-17import cran: Do not use "or later" licenses by default....* guix/import/cran.scm (string->license): Use exact license versions. Ricardo Wurmus
2016-12-14import: Add updater for rust crates....* guix/import/crate.scm (crate-package?, latest-release, %crate-updater): New variables. * guix/scripts/refresh.scm (%updaters): Add crate updater. * doc/guix.texi: Add crate updater to table. David Craven
2016-12-14import: Add importer for rust crates....* guix/import/crate.scm: New file. * guix/scripts/import/crate.scm: New file. * guix/scripts/import.scm (importers): Add crate importer. * tests/crate.scm: New file. * doc/guix.texi: Add crate importer to table. * Makefile.am (MODULES, SCM_TESTS): Add files. David Craven
2016-12-14import: utils: Add some utilities....* guix/import/utils.scm (maybe-inputs, maybe-native-inputs, package->definition): New variables. David Craven
2016-12-12import: cpan: Add updater....* guix/import/cpan.scm (module->dist-name): Fetch the field of interest. (cpan-fetch): Accept release name rather than module name. (fix-source-url): Rename to ... (cpan-source-url): ... this. Take metadata as parameter. (package->upstream-name, cpan-version, cpan-package?, latest-release): New procedures. (cpan-module->sexp): Use cpan-version and cpan-source-url. (%cpan-updater): New variable. * guix/scripts/refresh.scm (%updaters): Add %CPAN-UPDATER. Eric Bavier
2016-12-12import: cpan: Move core-module? to top-level....* guix/import/cpan.scm (cpan-module->sexp): Move local core-module? procedure to ... (core-module?): ... here. Eric Bavier
2016-12-12import: json: Silence json-fetch output....* guix/import/json.scm (json-fetch): Use http-fetch instead of url-fetch to avoid writing to stdout and a temporary file for each invocation. * guix/import/gem.scm (rubygems-fetch): Do not redirect json-fetch output to /dev/null. * guix/import/pypi.scm (pypi-fetch): Likewise. Eric Bavier
2016-11-14import/cpan: Maybe coerce version to string....* guix/import/cpan.scm (cpan-module->sexp) <version>: Test if version in meta is string or number. If it is number, coerce to string. Alex Sassmannshausen
2016-11-03import: cran: Fix off-by-one error....* guix/import/cran.scm (package->upstream-name): Do not include leading slash in upstream name URL. Ricardo Wurmus
2016-10-26import cran: Use URL for Bioconductor 3.4....* guix/import/cran.scm (%bioconductor-svn-url): Update to release URL for version 3.4. Ricardo Wurmus
2016-10-23import: pypi: All inputs are propagated-inputs by default....* guix/import/pypi.scm (maybe-inputs): Return inputs as "propagated-inputs". Hartmut Goebel
2016-10-16import: utils: Remove dependency on (json) module....This fixes a regression introduced by commit fbe9c1012820ab72f022a6ec958c35b431ae7a74. * guix/import/utils.scm: Remove unused (json) module. Alex Kost
2016-10-10import: github: Add .love extension....* guix/import/github.scm (find-extension): Add '.love' extension to the list of extensions checked. Efraim Flashner
2016-09-28import: utils: Refactor license->symbol....* guix/import/utils.scm (license->symbol): Work for all licenses. * tests/import-utils.scm (license->symbol): Add test. David Craven
2016-09-28import: utils: Add spdx-string->license....* guix/import/utils.scm (spdx-string->license): New variable. * guix/licenses.scm (agpl1, fdl1.2+): New variables. David Craven
2016-09-28import: Move string->license to importers....* guix/import/gem.scm (string->license): Move from (guix import utils). * guix/import/pypi.scm (string->license): Move from (guix import utils). David Craven
2016-09-28import: Reorder imports in (guix import utils)....* guix/import/utils.scm (define-module): Reorder imports alphabetically. David Craven
2016-08-30import: hackage: Default to https urls....* guix/import/hackage.scm (hackage-source-url, hackage-cabal-url): Use https for hackage.haskell.org. ng0
2016-08-30import: cpan: Use tls to query api.metacpan.org....* guix/import/cpan.scm (module->dist-name, cpan-fetch-module): Use tls for api.metacpan.org. Signed-off-by: Eric Bavier <bavier@member.fsf.org> ng0
2016-08-28import: Importers return prefixed licenses....* guix/import/utils.scm (define-module): Import licenses with license: prefix. (string->licenses): Use prefixed licenses. (license->symbol): Return symbols with the prefix license:. * guix/tests/pypi.scm (pypi->guix-package): Update test cases. * guix/tests/gem.scm (gem->guix-package): Update test case. David Craven
2016-07-26import: pypi: Correctly handle new-style URLs....Fixes <http://bugs.gnu.org/23997>. * guix/import/pypi.scm (guix-package->pypi-name): Rewrite using 'basename' and 'hyphen-package-name->name+version'. * tests/pypi.scm ("guix-package->pypi-name, old URL style") ("guix-package->pypi-name, new URL style"): New tests. Ludovic Courtès
2016-07-03import: cpan: Use our mirrors for 'https' URLs....* guix/import/cpan.scm (fix-source-url): New procedure. (cpan-module->sexp): Use it to construct our source-url. * tests/cpan.scm: Add tests for fix-source-url. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Alex Sassmannshausen
2016-06-25import: pypi: do not fail when 'run_requires' is missing from the metadata....* guix/import/pypi.scm (read-wheel-metadata): do not crash when 'run_requires' is missing from the metadata. Cyril Roelandt
2016-06-14import: pypi: read requirements from wheels....* doc/guix.tex (Invoking guix import): Mention that the pypi importer works better with "unzip". * guix/import/pypi.scm (latest-wheel-release, wheel-url->extracted-directory): New procedures. * tests/pypi.scm (("pypi->guix-package, wheels"): New test. Cyril Roelandt
2016-06-08gnu-maintenance: Replace 'find-packages' with 'find-package' (singular)....Fixes <http://bugs.gnu.org/23718>. Reported by Efraim Flashner <efraim@flashner.co.il>. * guix/gnu-maintenance.scm (find-packages): Remove. (find-package): New procedure. * guix/import/gnu.scm (gnu->guix-package): Use 'find-package' instead of 'find-packages' and adjust accordingly. Ludovic Courtès
2016-05-31import: github: Tiny cosmetic change....* guix/import/github.scm (find-extension): Use a one-argument lambda. Ludovic Courtès
2016-05-31import github: Add to extension list....* guix/import/github.scm (find-extension): Add '.tgz' extension. Efraim Flashner
2016-05-17import: Gracefully report import failures....Previously, something like 'guix import gnu which' would spit out a backtrace if, say, the 'which' tarball could not be authenticated. * guix/upstream.scm (download-tarball): Mention failure modes in docstring. * guix/import/gnu.scm (gnu-package->sexp): Return #f when 'download-tarball' returns #f. * guix/scripts/import.scm (guix-import): Call 'leave' when IMPORTER does not return a (package ...) sexp. Ludovic Courtès
2016-05-16import cran: latest-bioconductor-release: Wrap Bioconductor URL in list....* guix/import/cran.scm (latest-bioconductor-release): Wrap Bioconductor URL in list in the "urls" field of the "upstream-source" value. Ricardo Wurmus
2016-05-16import cran: Use URL for Bioconductor 3.3....* guix/import/cran.scm (%bioconductor-svn-url): Update to release URL for version 3.3. Ricardo Wurmus