2020-08-20 17:08:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-08-12 12:06:08 +00:00
|
|
|
, fetchFromGitHub
|
2020-08-20 17:08:02 +00:00
|
|
|
, aiohttp
|
|
|
|
, dask
|
|
|
|
, distributed
|
2022-11-02 22:02:43 +00:00
|
|
|
, setuptools
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dask-gateway";
|
|
|
|
# update dask-gateway lock step with dask-gateway-server
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "2023.1.1";
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "pyproject";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = "dask-gateway";
|
|
|
|
rev = "refs/tags/${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-+YCHIfNq8E2rXO8b91Q1D21dVzNWnJZIKZeY4AETa7s=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
sourceRoot = "source/dask-gateway";
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
dask
|
|
|
|
distributed
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests requires cluster for testing
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "dask_gateway" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A client library for interacting with a dask-gateway server";
|
|
|
|
homepage = "https://gateway.dask.org/";
|
|
|
|
license = licenses.bsd3;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|