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