Commit b8b52d6c authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.batchspawner: cleanup, fix on darwin

parent e51d5606
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -16,15 +16,16 @@
  pytestCheckHook,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "batchspawner";
  version = "1.3.0";
  pyproject = true;
  __structuredAttrs = true;

  src = fetchFromGitHub {
    owner = "jupyterhub";
    repo = "batchspawner";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Z7kB8b7s11wokTachLI/N+bdUV+FfCRTemL1KYQpzio=";
  };

@@ -54,12 +55,14 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "batchspawner" ];

  __darwinAllowLocalNetworking = true;

  meta = {
    description = "Spawner for Jupyterhub to spawn notebooks using batch resource managers";
    mainProgram = "batchspawner-singleuser";
    homepage = "https://github.com/jupyterhub/batchspawner";
    changelog = "https://github.com/jupyterhub/batchspawner/blob/v${version}/CHANGELOG.md";
    changelog = "https://github.com/jupyterhub/batchspawner/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.bsd3;
    maintainers = [ ];
  };
}
})