depot/third_party/nixpkgs/pkgs/development/python-modules/batchspawner/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

35 lines
746 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, jupyterhub
, isPy27
}:
buildPythonPackage rec {
pname = "batchspawner";
version = "1.0.0";
disabled = isPy27;
src = fetchFromGitHub {
owner = "jupyterhub";
repo = "batchspawner";
rev = "v${version}";
sha256 = "0yn312sjfjpjjfciagbczfmqprk2fj4lbb3vsbzj17p948acq5w2";
};
propagatedBuildInputs = [
jupyterhub
];
# tests require a job scheduler e.g. slurm, pbs, etc.
doCheck = false;
pythonImportCheck = [ "batchspawner" ];
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 ];
};
}