fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
chardet,
|
|
docker,
|
|
entrypoints,
|
|
escapism,
|
|
fetchFromGitHub,
|
|
iso8601,
|
|
jinja2,
|
|
pkgs-docker,
|
|
python-json-logger,
|
|
pythonOlder,
|
|
requests,
|
|
ruamel-yaml,
|
|
semver,
|
|
setuptools,
|
|
toml,
|
|
traitlets,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyter-repo2docker";
|
|
version = "2024.03.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jupyterhub";
|
|
repo = "repo2docker";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-D8sgeyfQjEkBYck/CikAVNZzUSl1R9uXSv75DTXT5U0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
chardet
|
|
docker
|
|
entrypoints
|
|
escapism
|
|
iso8601
|
|
jinja2
|
|
pkgs-docker
|
|
python-json-logger
|
|
requests
|
|
ruamel-yaml
|
|
semver
|
|
toml
|
|
traitlets
|
|
];
|
|
|
|
# Tests require a running Docker instance
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"repo2docker"
|
|
"repo2docker.app"
|
|
"repo2docker.utils"
|
|
"repo2docker.contentproviders.base"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Turn code repositories into Jupyter enabled Docker Images";
|
|
homepage = "https://repo2docker.readthedocs.io/";
|
|
changelog = "https://github.com/jupyterhub/repo2docker/blob/${src.rev}/docs/source/changelog.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|