2020-08-20 17:08:02 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2022-06-26 10:26:21 +00:00
|
|
|
, buildPythonPackage
|
2020-08-20 17:08:02 +00:00
|
|
|
, colorlog
|
|
|
|
, cryptography
|
2022-06-26 10:26:21 +00:00
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, go
|
2023-05-24 13:37:59 +00:00
|
|
|
, pykerberos
|
2022-06-26 10:26:21 +00:00
|
|
|
, pythonOlder
|
2023-05-24 13:37:59 +00:00
|
|
|
, skein
|
|
|
|
, sqlalchemy
|
2022-06-26 10:26:21 +00:00
|
|
|
, traitlets
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-gateway-server";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2022.10.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-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-8yyako49F3rK8oZFmpYOiLVg9K3YF76/XerapQx3uhc=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceRoot = "${src.name}/${pname}";
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
go
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
colorlog
|
|
|
|
cryptography
|
|
|
|
traitlets
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
kerberos = [
|
|
|
|
pykerberos
|
|
|
|
];
|
|
|
|
jobqueue = [
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
local = [
|
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
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;
|
|
|
|
|
2022-06-26 10:26:21 +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;
|
2022-06-26 10:26:21 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|