2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
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
|
|
|
|
, ruamel-yaml
|
2020-04-24 23:36:52 +00:00
|
|
|
, semver
|
|
|
|
, toml
|
|
|
|
, traitlets
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "2022.02.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "jupyter-repo2docker";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
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";
|
|
|
|
rev = version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-L7jUaGRea5HJnb/SX2K2qfvtFwkq9jfhrpvsu+LHH3M=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
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
|
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/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|