2020-08-20 17:08:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, jupyterhub
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "batchspawner";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.1.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jupyterhub";
|
|
|
|
repo = "batchspawner";
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "0zv485b7fk5zlwgp5fyibanqzbpisdl2a0gz70fwdj4kl462axnw";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jupyterhub
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests require a job scheduler e.g. slurm, pbs, etc.
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
pythonImportsCheck = [ "batchspawner" ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A spawner for Jupyterhub to spawn notebooks using batch resource managers";
|
|
|
|
homepage = "https://jupyter.org";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|