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.14";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "080dd9cd9292266dad35d1efc7aa1af0ed6993d15eadc79bd959d1ee273d1923";
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 meta = with lib; {
32 description = "JupyterHub Spawner using systemd for resource isolation";
33 homepage = "https://github.com/jupyterhub/systemdspawner";
34 license = licenses.bsd3;
35 maintainers = [ maintainers.costrouc ];
36 };
37}