2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonAtLeast
|
2018-09-14 20:05:48 +00:00
|
|
|
, docker
|
|
|
|
, escapism
|
|
|
|
, jinja2
|
2019-12-10 06:52:35 +00:00
|
|
|
, pkgs-docker
|
|
|
|
, python-json-logger
|
2018-09-14 20:05:48 +00:00
|
|
|
, pyyaml
|
2019-12-10 06:52:35 +00:00
|
|
|
, ruamel_yaml
|
|
|
|
, semver
|
|
|
|
, toml
|
|
|
|
, traitlets
|
2018-09-14 20:05:48 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-02-11 11:15:07 +00:00
|
|
|
version = "2021.1.0";
|
2018-09-14 20:05:48 +00:00
|
|
|
pname = "jupyter-repo2docker";
|
|
|
|
disabled = !(pythonAtLeast "3.4");
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-11 11:15:07 +00:00
|
|
|
sha256 = "3e3e671407ef2a7f7695338dc6ce2ca9cc75683ffc7a543829cf119564aca802";
|
2018-09-14 20:05:48 +00:00
|
|
|
};
|
|
|
|
|
2019-12-10 06:52:35 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
docker
|
|
|
|
escapism
|
|
|
|
jinja2
|
|
|
|
pkgs-docker
|
|
|
|
python-json-logger
|
|
|
|
ruamel_yaml
|
|
|
|
semver
|
|
|
|
toml
|
|
|
|
traitlets
|
|
|
|
];
|
2018-09-14 20:05:48 +00:00
|
|
|
|
|
|
|
# tests not packaged with pypi release
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-12-10 06:52:35 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"repo2docker"
|
|
|
|
"repo2docker.app"
|
|
|
|
"repo2docker.utils"
|
|
|
|
"repo2docker.contentproviders.base"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://repo2docker.readthedocs.io/en/latest/";
|
2018-09-14 20:05:48 +00:00
|
|
|
description = "Repo2docker: Turn code repositories into Jupyter enabled Docker Images";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|