1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, jupyterhub
5, packaging
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "batchspawner";
11 version = "1.2.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.5";
15
16 src = fetchFromGitHub {
17 owner = "jupyterhub";
18 repo = "batchspawner";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-oyS47q+gsO7JmRsbVJXglZsSRfits5rS/nrHW5E7EV0=";
21 };
22
23 propagatedBuildInputs = [
24 jupyterhub
25 packaging
26 ];
27
28 # Tests require a job scheduler e.g. slurm, pbs, etc.
29 doCheck = false;
30
31 pythonImportsCheck = [
32 "batchspawner"
33 ];
34
35 meta = with lib; {
36 description = "A spawner for Jupyterhub to spawn notebooks using batch resource managers";
37 homepage = "https://github.com/jupyterhub/batchspawner";
38 changelog = "https://github.com/jupyterhub/batchspawner/blob/v${version}/CHANGELOG.md";
39 license = licenses.bsd3;
40 maintainers = with maintainers; [ ];
41 };
42}