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
|
2022-06-26 10:26:21 +00:00
|
|
|
, pythonOlder
|
|
|
|
, traitlets
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-gateway-server";
|
|
|
|
# update dask-gateway-server lock step with dask-gateway
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "2022.4.0";
|
|
|
|
format = "setuptools";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = "dask-gateway";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-Grjp7gt3Pos4cQSGV/Rynz6W/zebRI0OqDiWT4cTh8I=";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export HOME=$(mktemp -d)
|
2021-02-22 21:28:39 +00:00
|
|
|
export GO111MODULE=off
|
2020-08-20 17:08:02 +00:00
|
|
|
'';
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|