2020-08-06 12:52:39 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jupyterhub
|
|
|
|
, tornado
|
|
|
|
, bash
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyterhub-systemdspawner";
|
2021-01-18 04:52:44 +00:00
|
|
|
version = "0.15.0";
|
2020-08-06 12:52:39 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-18 04:52:44 +00:00
|
|
|
sha256 = "b6e2d981657aa5d3794abb89b1650d056524158a3d0f0f706007cae9b6dbeb2b";
|
2020-08-06 12:52:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jupyterhub
|
|
|
|
tornado
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace systemdspawner/systemd.py \
|
|
|
|
--replace "/bin/bash" "${bash}/bin/bash"
|
|
|
|
|
|
|
|
substituteInPlace systemdspawner/systemdspawner.py \
|
|
|
|
--replace "/bin/bash" "${bash}/bin/bash"
|
|
|
|
'';
|
|
|
|
|
2021-02-03 13:10:38 +00:00
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-08-06 12:52:39 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "JupyterHub Spawner using systemd for resource isolation";
|
|
|
|
homepage = "https://github.com/jupyterhub/systemdspawner";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|