2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, pythonAtLeast
|
2018-09-14 21:05:48 +01:00
|
|
|
, docker
|
|
|
|
, escapism
|
|
|
|
, jinja2
|
2019-12-10 06:52:35 +00:00
|
|
|
, pkgs-docker
|
|
|
|
, python-json-logger
|
2018-09-14 21:05:48 +01:00
|
|
|
, pyyaml
|
2019-12-10 06:52:35 +00:00
|
|
|
, ruamel_yaml
|
|
|
|
, semver
|
|
|
|
, toml
|
|
|
|
, traitlets
|
2018-09-14 21:05:48 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-06-06 07:47:15 +01:00
|
|
|
version = "0.11.0";
|
2018-09-14 21:05:48 +01:00
|
|
|
pname = "jupyter-repo2docker";
|
|
|
|
disabled = !(pythonAtLeast "3.4");
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:15 +01:00
|
|
|
sha256 = "7fc2edf0cda1e46f2e7553bfb84a47e6d141b8dac393268ef01ee3504ca6ad94";
|
2018-09-14 21:05:48 +01: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 21:05:48 +01: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 02:11:51 +01:00
|
|
|
homepage = "https://repo2docker.readthedocs.io/en/latest/";
|
2018-09-14 21:05:48 +01:00
|
|
|
description = "Repo2docker: Turn code repositories into Jupyter enabled Docker Images";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|