depot/third_party/nixpkgs/pkgs/development/python-modules/jupyter-repo2docker/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

72 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 = "2023.06.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jupyterhub";
repo = "repo2docker";
rev = "refs/tags/${version}";
hash = "sha256-egSQ8PXH9PxVpkZfaWfU2ZjRNW67x6FzIy+LQR5BdNE=";
};
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; [ ];
};
}