pythonPackages.pyres: ensure that redis 2.10.6 is used
Upstream's requirements.txt wrongly suggests that redis==3.x is support (missing upper-bound constraint), but the tests break due to API incompatibilities.
This commit is contained in:
parent
51f6d7f244
commit
e2a6e8b8ff
@ -1,11 +1,26 @@
|
||||
{ stdenv, buildPythonPackage, fetchFromGitHub, simplejson, redis, setproctitle, nose, pkgs }:
|
||||
{ stdenv, fetchPypi, buildPythonPackage, fetchFromGitHub, simplejson, redis, setproctitle, nose, pkgs }:
|
||||
|
||||
let
|
||||
|
||||
# the requirements of `pyres` support Redis 3.x (due to a missing upper-bound),
|
||||
# but it doesn't support Redis 3.x.
|
||||
redis' = redis.overridePythonAttrs (old: rec {
|
||||
pname = "redis";
|
||||
version = "2.10.6";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "03vcgklykny0g0wpvqmy8p6azi2s078317wgb2xjv5m2rs9sjb52";
|
||||
};
|
||||
});
|
||||
|
||||
in
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyres";
|
||||
version = "1.5";
|
||||
|
||||
# ps is used in Worker.worker_pids method
|
||||
propagatedBuildInputs = [ simplejson setproctitle redis pkgs.ps ];
|
||||
propagatedBuildInputs = [ simplejson setproctitle redis' pkgs.ps ];
|
||||
checkInputs = [ nose pkgs.redis ];
|
||||
|
||||
# PyPI tarball doesn't contain tests so let's use GitHub
|
||||
|
Loading…
Reference in New Issue
Block a user