mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
41 lines
855 B
Nix
41 lines
855 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, jupyterhub
|
|
, tornado
|
|
, bash
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyterhub-systemdspawner";
|
|
version = "0.15.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b6e2d981657aa5d3794abb89b1650d056524158a3d0f0f706007cae9b6dbeb2b";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
jupyterhub
|
|
tornado
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace systemdspawner/systemd.py \
|
|
--replace "/bin/bash" "${bash}/bin/bash"
|
|
|
|
substituteInPlace systemdspawner/systemdspawner.py \
|
|
--replace "/bin/bash" "${bash}/bin/bash"
|
|
'';
|
|
|
|
# no tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "JupyterHub Spawner using systemd for resource isolation";
|
|
homepage = "https://github.com/jupyterhub/systemdspawner";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|