From e21f98dfd84cc8077241bb7f450bd09d66ecd414 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 14 Sep 2018 16:05:48 -0400 Subject: [PATCH] pythonPackages.jupyter-repo2docker: init at 0.6.0 --- .../jupyter-repo2docker/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++ 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/jupyter-repo2docker/default.nix diff --git a/pkgs/development/python-modules/jupyter-repo2docker/default.nix b/pkgs/development/python-modules/jupyter-repo2docker/default.nix new file mode 100644 index 000000000000..0413a5badba8 --- /dev/null +++ b/pkgs/development/python-modules/jupyter-repo2docker/default.nix @@ -0,0 +1,40 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pkgs-docker +, docker +, traitlets +, python-json-logger +, escapism +, jinja2 +, ruamel_yaml +, pyyaml +, pytest +, wheel +, pytestcov +, pythonAtLeast +}: + +buildPythonPackage rec { + version = "0.6.0"; + pname = "jupyter-repo2docker"; + disabled = !(pythonAtLeast "3.4"); + + src = fetchPypi { + inherit pname version; + sha256 = "32c6dc6fd2402d6f5a955f8ab59299097bb5f4972c7dcc6fe2a8fe4c96dcab27"; + }; + + checkInputs = [ pytest pyyaml wheel pytestcov ]; + propagatedBuildInputs = [ pkgs-docker docker traitlets python-json-logger escapism jinja2 ruamel_yaml ]; + + # tests not packaged with pypi release + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://repo2docker.readthedocs.io/en/latest/; + description = "Repo2docker: Turn code repositories into Jupyter enabled Docker Images"; + license = licenses.bsdOriginal; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4398d1c6e998..ea4f901b8516 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6320,6 +6320,10 @@ in { jupyter_core = callPackage ../development/python-modules/jupyter_core { }; + jupyter-repo2docker = callPackage ../development/python-modules/jupyter-repo2docker { + pkgs-docker = pkgs.docker; + }; + jupyterhub = callPackage ../development/python-modules/jupyterhub { }; jupyterhub-ldapauthenticator = callPackage ../development/python-modules/jupyterhub-ldapauthenticator { };