Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, jupyterhub 5, tornado 6, bash 7}: 8 9buildPythonPackage rec { 10 pname = "jupyterhub-systemdspawner"; 11 version = "0.15.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "b6e2d981657aa5d3794abb89b1650d056524158a3d0f0f706007cae9b6dbeb2b"; 16 }; 17 18 propagatedBuildInputs = [ 19 jupyterhub 20 tornado 21 ]; 22 23 postPatch = '' 24 substituteInPlace systemdspawner/systemd.py \ 25 --replace "/bin/bash" "${bash}/bin/bash" 26 27 substituteInPlace systemdspawner/systemdspawner.py \ 28 --replace "/bin/bash" "${bash}/bin/bash" 29 ''; 30 31 # no tests 32 doCheck = false; 33 34 meta = with lib; { 35 description = "JupyterHub Spawner using systemd for resource isolation"; 36 homepage = "https://github.com/jupyterhub/systemdspawner"; 37 license = licenses.bsd3; 38 maintainers = [ maintainers.costrouc ]; 39 }; 40}