1{ lib, stdenv, fetchPypi, buildPythonPackage, fetchFromGitHub, simplejson, redis, setproctitle, nose, pkgs }:
2
3buildPythonPackage rec {
4 pname = "pyres";
5 version = "1.5";
6
7 propagatedBuildInputs = [ simplejson setproctitle redis pkgs.ps ];
8 checkInputs = [ nose pkgs.redis ];
9
10 # PyPI tarball doesn't contain tests so let's use GitHub
11 src = fetchFromGitHub {
12 owner = "binarydud";
13 repo = pname;
14 rev = version;
15 sha256 = "1rkpv7gbjxl9h9g7kncmsrgmi77l7pgfq8d7dbnsr3ia2jmjqb8y";
16 };
17
18 # started redis-server makes this hang on darwin
19 doCheck = !stdenv.isDarwin;
20
21 checkPhase = ''
22 redis-server &
23 nosetests . --exclude test_worker_pids
24 '';
25
26 meta = with lib; {
27 description = "Python resque clone";
28 homepage = "https://github.com/binarydud/pyres";
29 license = licenses.mit;
30 maintainers = with maintainers; [ jluttine ];
31 broken = true; # not compatible with latest redis
32 };
33}