[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49338] [PATCH 8/8] gnu: Add repo2docker.
From: |
Hugo Lecomte |
Subject: |
[bug#49338] [PATCH 8/8] gnu: Add repo2docker. |
Date: |
Mon, 5 Jul 2021 09:29:31 +0200 |
* gnu/packages/jupyter.scm (repo2docker): New variable.
---
gnu/packages/jupyter.scm | 73 +++++++++++++++++++++++++++++++++++++++-
1 file changed, 72 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/jupyter.scm b/gnu/packages/jupyter.scm
index 52869dbeeb..d2d4bf2e20 100644
--- a/gnu/packages/jupyter.scm
+++ b/gnu/packages/jupyter.scm
@@ -33,9 +33,13 @@
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages python-web)
#:use-module (gnu packages time)
+ #:use-module (gnu packages xml)
#:use-module (gnu packages tls)
- #:use-module (gnu packages xml))
+ #:use-module (gnu packages sphinx)
+ #:use-module (gnu packages serialization)
+ #:use-module (gnu packages docker))
(define-public python-jupyter-protocol
(package
@@ -310,3 +314,70 @@ are interactive HTML widgets for Jupyter notebooks and the
IPython kernel.")
"This package provides a client library for executing notebooks. Formerly
nbconvert's @code{ExecutePreprocessor.}")
(license license:bsd-3)))
+
+(define-public repo2docker
+ (package
+ (name "repo2docker")
+ (version "2021.03.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jupyterhub/repo2docker/")
+ (commit "2021.03.0")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "18w8rgf7fpf79kx36y2c3xi3d52i41z112l3sz719d8kg0bir16m"))))
+ (outputs '("out" "doc"))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-after 'patch-shebangs 'fix-install-miniforge
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out")))
+ (substitute* (find-files
+ out "^(install-miniforge|install-nix|\
+nix-shell-wrapper|repo2docker-entrypoint)")
+ (("^#!(.*)/bin/bash")
+ "#!/bin/bash"))
+ (substitute* (find-files out "^freeze\\.py$")
+ (("^#!(.*)/bin/python3")
+ "#!/bin/python3\n")))))
+ (add-after 'install 'make-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "doc"))
+ (doc (string-append out "/share/doc/"
+ ,name)))
+ (setenv "PYTHONPATH"
+ (string-append (getcwd) ":"
+ (getenv "PYTHONPATH")))
+ (with-directory-excursion "docs"
+ (invoke "make" "html")
+ (copy-recursively "build/html"
+ (string-append doc "/html")))))))))
+ (inputs
+ `(("python-traitlets" ,python-traitlets)
+ ("python-toml" ,python-toml)
+ ("python-semver" ,python-semver)
+ ("python-ruamel.yaml" ,python-ruamel.yaml)
+ ("python-requests" ,python-requests)
+ ("python-json-logger" ,python-json-logger)
+ ("python-jinja2" ,python-jinja2)
+ ("python-escapism" ,python-escapism)
+ ("python-docker" ,python-docker)))
+ (native-inputs
+ `(("python-sphinx" ,python-sphinx)
+ ("python-recommonmark" ,python-recommonmark)
+ ("python-sphinxcontrib-autoprogram" ,python-sphinxcontrib-autoprogram)
+ ("python-pydata-sphinx-theme" ,python-pydata-sphinx-theme)))
+ (home-page "https://repo2docker.readthedocs.io/en/latest/index.html#")
+ (synopsis "Generate docker images from repositories")
+ (description
+ "repo2docker fetches a repository (from GitHub, GitLab, Zenodo, Figshare,
+Dataverse installations, a Git repository or a local directory) and builds a
+container image in which the code can be executed. The image build process is
+based on the configuration files found in the repository. repo2docker can be
+used to explore a repository locally by building and executing the constructed
+image of the repository, or as a means of building images that are pushed to a
+Docker registry.")
+ (license license:bsd-3)))
--
2.31.1
- [bug#49338] [PATCH 0/8] Repo2docker packages, Hugo Lecomte, 2021/07/02
- [bug#49338] [PATCH 0/8] Repo2docker packages, zimoun, 2021/07/03
- [bug#49338] [PATCH 1/8] gnu: Add python-escapism., Hugo Lecomte, 2021/07/05
- [bug#49338] [PATCH 2/8] gnu: Add python-recommonmark., Hugo Lecomte, 2021/07/05
- [bug#49338] [PATCH 3/8] gnu: Add python-pytest-datadir., Hugo Lecomte, 2021/07/05
- [bug#49338] [PATCH 4/8] gnu: Add python-pytest-regressions., Hugo Lecomte, 2021/07/05
- [bug#49338] [PATCH 5/8] gnu: Add python-jupyter-sphinx., Hugo Lecomte, 2021/07/05
- [bug#49338] [PATCH 6/8] gnu: Add python-sphinxcontrib-autoprogram., Hugo Lecomte, 2021/07/05
- [bug#49338] [PATCH 8/8] gnu: Add repo2docker.,
Hugo Lecomte <=
- [bug#49338] [PATCH 7/8] gnu: Add python-pydata-sphinx-theme., Hugo Lecomte, 2021/07/05
- bug#49338: [PATCH 0/8] Repo2docker packages, Ludovic Courtès, 2021/07/08