2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
colorlog,
|
|
|
|
cryptography,
|
|
|
|
fetchFromGitHub,
|
|
|
|
go,
|
|
|
|
pykerberos,
|
|
|
|
pythonOlder,
|
|
|
|
skein,
|
|
|
|
sqlalchemy,
|
|
|
|
traitlets,
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-gateway-server";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2023.9.0";
|
2022-06-26 10:26:21 +00:00
|
|
|
format = "setuptools";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = "dask-gateway";
|
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-hwNLcuFN6ItH5KhC2gDUsaZT7qTC48fPR/Qx6u8B1+M=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceRoot = "${src.name}/${pname}";
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ go ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
colorlog
|
|
|
|
cryptography
|
|
|
|
traitlets
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
kerberos = [ pykerberos ];
|
|
|
|
jobqueue = [ sqlalchemy ];
|
|
|
|
local = [ sqlalchemy ];
|
2023-05-24 13:37:59 +00:00
|
|
|
yarn = [
|
|
|
|
skein
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
preBuild = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
# Tests requires cluster for testing
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dask_gateway_server" ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A multi-tenant server for securely deploying and managing multiple Dask clusters";
|
|
|
|
homepage = "https://gateway.dask.org/";
|
|
|
|
license = licenses.bsd3;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|