depot/third_party/nixpkgs/pkgs/development/python-modules/dask-gateway-server/default.nix
Default email 93ffb054db Project import generated by Copybara.
GitOrigin-RevId: 6f0c00907bbd81b47052eef59f7b284926a77289
2020-11-24 21:58:05 +01: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.9.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "82bca8a98fc1dbda9f67c8eceac59cb92abe07db6227c120a1eb1d040ea40fda";
};
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 ];
};
}