2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-08-12 12:06:08 +00:00
|
|
|
, chardet
|
2020-04-24 23:36:52 +00:00
|
|
|
, docker
|
2021-12-06 16:07:01 +00:00
|
|
|
, entrypoints
|
2020-04-24 23:36:52 +00:00
|
|
|
, escapism
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, iso8601
|
2020-04-24 23:36:52 +00:00
|
|
|
, jinja2
|
|
|
|
, pkgs-docker
|
|
|
|
, python-json-logger
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2024-01-02 11:29:13 +00:00
|
|
|
, requests
|
2021-12-06 16:07:01 +00:00
|
|
|
, ruamel-yaml
|
2020-04-24 23:36:52 +00:00
|
|
|
, semver
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
, toml
|
|
|
|
, traitlets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-repo2docker";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2024.03.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jupyterhub";
|
|
|
|
repo = "repo2docker";
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-U22A1OX83F2OMdS3w0elQpGg1z+ZgOeZLv8XjOK26mg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
chardet
|
2020-04-24 23:36:52 +00:00
|
|
|
docker
|
2021-12-06 16:07:01 +00:00
|
|
|
entrypoints
|
2020-04-24 23:36:52 +00:00
|
|
|
escapism
|
2021-12-06 16:07:01 +00:00
|
|
|
iso8601
|
2020-04-24 23:36:52 +00:00
|
|
|
jinja2
|
|
|
|
pkgs-docker
|
|
|
|
python-json-logger
|
2024-01-02 11:29:13 +00:00
|
|
|
requests
|
2021-12-06 16:07:01 +00:00
|
|
|
ruamel-yaml
|
2020-04-24 23:36:52 +00:00
|
|
|
semver
|
|
|
|
toml
|
|
|
|
traitlets
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# Tests require a running Docker instance
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"repo2docker"
|
|
|
|
"repo2docker.app"
|
|
|
|
"repo2docker.utils"
|
|
|
|
"repo2docker.contentproviders.base"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "Turn code repositories into Jupyter enabled Docker Images";
|
|
|
|
homepage = "https://repo2docker.readthedocs.io/";
|
2024-01-02 11:29:13 +00:00
|
|
|
changelog = "https://github.com/jupyterhub/repo2docker/blob/${src.rev}/docs/source/changelog.md";
|
|
|
|
license = licenses.bsd3;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|