depot/third_party/nixpkgs/pkgs/development/python-modules/dask-gateway-server/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

49 lines
935 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, colorlog
, cryptography
, traitlets
, go
, isPy27
}:
buildPythonPackage rec {
pname = "dask-gateway-server";
# update dask-gateway-server lock step with dask-gateway
version = "0.8.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "272134933b7e2068cd89a17a5012c76a29fbd9e40a78164345a2b15353d4b40a";
};
nativeBuildInputs = [
go
];
propagatedBuildInputs = [
aiohttp
colorlog
cryptography
traitlets
];
preBuild = ''
export HOME=$(mktemp -d)
'';
# tests requires cluster for testing
doCheck = false;
pythonImportsCheck = [ "dask_gateway_server" ];
meta = with lib; {
description = "A multi-tenant server for securely deploying and managing multiple Dask clusters";
homepage = "https://gateway.dask.org/";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}