depot/third_party/nixpkgs/pkgs/development/python-modules/batchspawner/default.nix
Default email a944afd061 Project import generated by Copybara.
GitOrigin-RevId: 2247d824fe07f16325596acc7faa286502faffd1
2020-11-21 20:51:51 +01:00

35 lines
747 B
Nix

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