depot/third_party/nixpkgs/pkgs/development/python-modules/batchspawner/default.nix
Default email d2947cfef0 Project import generated by Copybara.
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
2022-10-06 20:32:54 +02:00

39 lines
802 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, jupyterhub
, pythonOlder
}:
buildPythonPackage rec {
pname = "batchspawner";
version = "1.2.0";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "jupyterhub";
repo = "batchspawner";
rev = "refs/tags/v${version}";
hash = "sha256-oyS47q+gsO7JmRsbVJXglZsSRfits5rS/nrHW5E7EV0=";
};
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 ];
};
}