nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

pythonPackages.systemdspawner: init at 0.14

authored by

Chris Ostrouchov and committed by
Jon
2147589c 228f0803

+43 -2
+2 -2
nixos/modules/services/development/jupyterhub/default.nix
··· 67 67 this is a python file. 68 68 ''; 69 69 example = literalExample '' 70 - c.SystemdSpawner.memory = "8G" 71 - c.SystemdSpawner.cpus = "2" 70 + c.SystemdSpawner.mem_limit = '8G' 71 + c.SystemdSpawner.cpu_limit = 2.0 72 72 ''; 73 73 }; 74 74
+37
pkgs/development/python-modules/jupyterhub-systemdspawner/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , jupyterhub 5 + , tornado 6 + , bash 7 + }: 8 + 9 + buildPythonPackage 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 + }
+4
pkgs/top-level/python-packages.nix
··· 4481 4481 4482 4482 jupyterhub-ldapauthenticator = callPackage ../development/python-modules/jupyterhub-ldapauthenticator { }; 4483 4483 4484 + jupyterhub-systemdspawner = callPackage ../development/python-modules/jupyterhub-systemdspawner { 4485 + inherit (pkgs) bash; 4486 + }; 4487 + 4484 4488 kaggle = callPackage ../development/python-modules/kaggle { }; 4485 4489 4486 4490 keyring = if isPy3k then