From 00155e6f423cf485c353b913dc4d78a4d0ce8897 Mon Sep 17 00:00:00 2001 From: natsukium Date: Thu, 21 Mar 2024 21:50:45 +0900 Subject: [PATCH] python311Packages.batchspawner: refactor --- .../python-modules/batchspawner/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/batchspawner/default.nix b/pkgs/development/python-modules/batchspawner/default.nix index 106435af040b..9e54f054e005 100644 --- a/pkgs/development/python-modules/batchspawner/default.nix +++ b/pkgs/development/python-modules/batchspawner/default.nix @@ -1,17 +1,19 @@ { lib , buildPythonPackage , fetchFromGitHub +, setuptools +, wheel +, jinja2 , jupyterhub -, packaging , pythonOlder }: buildPythonPackage rec { pname = "batchspawner"; version = "1.3.0"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.5"; + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "jupyterhub"; @@ -20,9 +22,14 @@ buildPythonPackage rec { hash = "sha256-Z7kB8b7s11wokTachLI/N+bdUV+FfCRTemL1KYQpzio="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + wheel + ]; + + dependencies = [ + jinja2 jupyterhub - packaging ]; # Tests require a job scheduler e.g. slurm, pbs, etc.