mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
30448f4e0c
Diff: https://github.com/jupyterhub/systemdspawner/compare/refs/tags/v1.0.1...v1.0.2 Changelog: https://github.com/jupyterhub/systemdspawner/blob/v1.0.2/CHANGELOG.md
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
bash,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
jupyterhub,
|
|
pythonOlder,
|
|
setuptools,
|
|
tornado,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyterhub-systemdspawner";
|
|
version = "1.0.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jupyterhub";
|
|
repo = "systemdspawner";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-obM8HGCHsisRV1+kHMWdA7d6eb6awwPMBuDUAf3k0uI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace systemdspawner/systemdspawner.py \
|
|
--replace-fail "/bin/bash" "${bash}/bin/bash"
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
jupyterhub
|
|
tornado
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/bin
|
|
cp check-kernel.bash $out/bin/
|
|
patchShebangs $out/bin
|
|
'';
|
|
|
|
pythonImportsCheck = [ "systemdspawner" ];
|
|
|
|
meta = with lib; {
|
|
description = "JupyterHub Spawner using systemd for resource isolation";
|
|
mainProgram = "check-kernel.bash";
|
|
homepage = "https://github.com/jupyterhub/systemdspawner";
|
|
changelog = "https://github.com/jupyterhub/systemdspawner/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|