about summary refs log tree commit diff
path: root/pkgs/development/python-modules/dask-gateway/default.nix
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-08-11 01:19:05 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-08-11 01:19:05 +0200
commit7d79dd8e52e8c2113dd6129be17fd6300fb56fd1 (patch)
tree708646a40975b14631b9d44326bacc0913e0e816 /pkgs/development/python-modules/dask-gateway/default.nix
parent21237eedfea249c34aee2277da56420b6d058d11 (diff)
python3Packages.dask-gateway: fix build
Diffstat (limited to 'pkgs/development/python-modules/dask-gateway/default.nix')
-rw-r--r--pkgs/development/python-modules/dask-gateway/default.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/dask-gateway/default.nix b/pkgs/development/python-modules/dask-gateway/default.nix
index 5f2634a174809..f0e5a54c95bf0 100644
--- a/pkgs/development/python-modules/dask-gateway/default.nix
+++ b/pkgs/development/python-modules/dask-gateway/default.nix
@@ -1,6 +1,6 @@
 { lib
 , buildPythonPackage
-, fetchPypi
+, fetchFromGitHub
 , aiohttp
 , dask
 , distributed
@@ -10,12 +10,17 @@ buildPythonPackage rec {
   pname = "dask-gateway";
   # update dask-gateway lock step with dask-gateway-server
   version = "2022.6.1";
+  format = "pyproject";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "sha256-i0OFXjvDg+D4Sdyg6rluP0k6/Ecr+VZn+RiIEQONQX0=";
+  src = fetchFromGitHub {
+    owner = "dask";
+    repo = "dask-gateway";
+    rev = "refs/tags/${version}";
+    hash = "sha256-PsagZdEPpeuZH9hFL98xB5z6zOdd4Cx/skGQ0eOYkCA=";
   };
 
+  sourceRoot = "source/dask-gateway";
+
   propagatedBuildInputs = [
     aiohttp
     dask
@@ -31,6 +36,6 @@ buildPythonPackage rec {
     description = "A client library for interacting with a dask-gateway server";
     homepage = "https://gateway.dask.org/";
     license = licenses.bsd3;
-    maintainers = [ maintainers.costrouc ];
+    maintainers = with maintainers; [ costrouc ];
   };
 }