Skip to content

Commit

Permalink
python311Packages.jupyterhub-systemdspawner: 0.11 -> 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff authored and dpausp committed Oct 5, 2023
1 parent 9c7924c commit bd05439
Showing 1 changed file with 23 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,26 @@
{ lib
, bash
, buildPythonPackage
, fetchFromGitHub
, jupyterhub
, pythonOlder
, tornado
, bash
}:

buildPythonPackage rec {
pname = "jupyterhub-systemdspawner";
version = "0.15";
version = "1.0.1";
format = "setuptools";

disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "jupyterhub";
repo = "systemdspawner";
rev = "v${version}";
hash = "sha256-EUCA+CKCeYr+cLVrqTqe3Q32JkbqeALL6tfOnlVHk8Q=";
rev = "refs/tags/v${version}";
hash = "sha256-2Pxswa472umovHBUVTIX1l+Glj6bzzgBLsu+p4IA6jA=";
};

propagatedBuildInputs = [
jupyterhub
tornado
];

buildInputs = [ bash ];

postPatch = ''
substituteInPlace systemdspawner/systemd.py \
--replace "/bin/bash" "${bash}/bin/bash"
Expand All @@ -32,7 +29,16 @@ buildPythonPackage rec {
--replace "/bin/bash" "${bash}/bin/bash"
'';

# no tests
buildInputs = [
bash
];

propagatedBuildInputs = [
jupyterhub
tornado
];

# Module has no tests
doCheck = false;

postInstall = ''
Expand All @@ -41,9 +47,14 @@ buildPythonPackage rec {
patchShebangs $out/bin
'';

pythonImportsCheck = [
"systemdspawner"
];

meta = with lib; {
description = "JupyterHub Spawner using systemd for resource isolation";
homepage = "https://github.com/jupyterhub/systemdspawner";
changelog = "https://github.com/jupyterhub/systemdspawner/blob/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ costrouc ];
};
Expand Down

0 comments on commit bd05439

Please sign in to comment.