python311Packages.jupyterhub-systemdspawner: modernize

This commit is contained in:
Peder Bergebakken Sundt
2024-08-13 17:49:29 +02:00
parent b52da3f4f9
commit a6d7f4bbad
@@ -5,13 +5,14 @@
fetchFromGitHub,
jupyterhub,
pythonOlder,
setuptools,
tornado,
}:
buildPythonPackage rec {
pname = "jupyterhub-systemdspawner";
version = "1.0.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
@@ -23,16 +24,13 @@ buildPythonPackage rec {
};
postPatch = ''
substituteInPlace systemdspawner/systemd.py \
--replace "/bin/bash" "${bash}/bin/bash"
substituteInPlace systemdspawner/systemdspawner.py \
--replace "/bin/bash" "${bash}/bin/bash"
--replace-fail "/bin/bash" "${bash}/bin/bash"
'';
buildInputs = [ bash ];
build-system = [ setuptools ];
propagatedBuildInputs = [
dependencies = [
jupyterhub
tornado
];