From b5b48c0a91ef37841839619511c48f1887dbe964 Mon Sep 17 00:00:00 2001 From: Christopher Ostrouchov Date: Fri, 7 Sep 2018 02:38:41 -0400 Subject: [PATCH] pythonPackages.locustio: 0.8.1 -> 0.9.0 (#46191) Fixing build issue. Additionally fetching from github becuase pypi packge does not come with README which is a buildtime dependency. --- .../python-modules/locustio/default.nix | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/locustio/default.nix b/pkgs/development/python-modules/locustio/default.nix index c3e27c8b36a0..18875f840644 100644 --- a/pkgs/development/python-modules/locustio/default.nix +++ b/pkgs/development/python-modules/locustio/default.nix @@ -1,8 +1,8 @@ { buildPythonPackage -, fetchPypi +, fetchFromGitHub , mock , unittest2 -, msgpack-python +, msgpack , requests , flask , gevent @@ -11,18 +11,16 @@ buildPythonPackage rec { pname = "locustio"; - version = "0.8.1"; + version = "0.9.0"; - src = fetchPypi { - inherit pname version; - sha256 = "64583987ba1c330bb071aee3e29d2eedbfb7c8b342fa064bfb74fafcff660d61"; + src = fetchFromGitHub { + owner = "locustio"; + repo = "locust"; + rev = "${version}"; + sha256 = "1645d63ig4ymw716b6h53bhmjqqc13p9r95k1xfx66ck6vdqnisd"; }; - patchPhase = '' - sed -i s/"pyzmq=="/"pyzmq>="/ setup.py - ''; - - propagatedBuildInputs = [ msgpack-python requests flask gevent pyzmq ]; + propagatedBuildInputs = [ msgpack requests flask gevent pyzmq ]; buildInputs = [ mock unittest2 ]; meta = {