2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchPypi, buildPythonPackage, fetchFromGitHub, simplejson, redis, setproctitle, nose, pkgs }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyres";
|
|
|
|
version = "1.5";
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
propagatedBuildInputs = [ simplejson setproctitle redis pkgs.ps ];
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [ nose pkgs.redis ];
|
|
|
|
|
|
|
|
# PyPI tarball doesn't contain tests so let's use GitHub
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "binarydud";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1rkpv7gbjxl9h9g7kncmsrgmi77l7pgfq8d7dbnsr3ia2jmjqb8y";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
# started redis-server makes this hang on darwin
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
redis-server &
|
|
|
|
nosetests . --exclude test_worker_pids
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python resque clone";
|
|
|
|
homepage = "https://github.com/binarydud/pyres";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
2022-04-15 01:41:22 +00:00
|
|
|
broken = true; # not compatible with latest redis
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|