From e5cd420e7384fa936e9786a02201ab400b4dcca3 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Thu, 13 Sep 2018 15:10:40 -0400 Subject: [PATCH] pythonPackages.distributed: refactor move to fetchPypi There is a bug when using git repo in that the package does not get a version (shows up as `0+unknown`). Using pypi fixes this issue allows allows for auto upgrades. --- .../python-modules/distributed/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/distributed/default.nix b/pkgs/development/python-modules/distributed/default.nix index 987b64439a5..694bc2ce4f9 100644 --- a/pkgs/development/python-modules/distributed/default.nix +++ b/pkgs/development/python-modules/distributed/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, fetchFromGitHub +, fetchPypi , pytest , pytest-repeat , pytest-faulthandler @@ -26,14 +26,12 @@ buildPythonPackage rec { pname = "distributed"; - version = "1.22.1"; + version = "1.23.1"; # get full repository need conftest.py to run tests - src = fetchFromGitHub { - owner = "dask"; - repo = pname; - rev = version; - sha256 = "0xvx55rhbhlyys3kjndihwq6y6260qzy9mr3miclh5qddaiw2d5z"; + src = fetchPypi { + inherit pname version; + sha256 = "9d4693442efe40e05e4304fe6d8174989c6eb4bad1afe70480c98263ef8e1cdb"; }; checkInputs = [ pytest pytest-repeat pytest-faulthandler pytest-timeout mock joblib ];