nixpkgs/pkgs/development/python-modules/pyres/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
927 B
Nix
Raw Normal View History

{ lib, stdenv, fetchPypi, buildPythonPackage, fetchFromGitHub, simplejson, redis, setproctitle, nose, pkgs }:
2018-10-27 14:17:30 +01:00
buildPythonPackage rec {
pname = "pyres";
version = "1.5";
2022-03-09 17:55:22 +00:00
propagatedBuildInputs = [ simplejson setproctitle redis pkgs.ps ];
2018-10-27 14:17:30 +01: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";
};
# started redis-server makes this hang on darwin
doCheck = !stdenv.isDarwin;
2018-10-27 14:17:30 +01:00
checkPhase = ''
redis-server &
2019-03-02 13:50:16 +00:00
nosetests . --exclude test_worker_pids
2018-10-27 14:17:30 +01:00
'';
meta = with lib; {
2018-10-27 14:17:30 +01:00
description = "Python resque clone";
homepage = "https://github.com/binarydud/pyres";
2018-10-27 14:17:30 +01:00
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
2022-03-09 17:55:22 +00:00
broken = true; # not compatible with latest redis
2018-10-27 14:17:30 +01:00
};
}