pythonPackages.pyres: init at 1.5
This commit is contained in:
parent
5d2ac2cd06
commit
735abd8c4c
30
pkgs/development/python-modules/pyres/default.nix
Normal file
30
pkgs/development/python-modules/pyres/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchFromGitHub, simplejson, redis, setproctitle, nose, pkgs }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pyres";
|
||||||
|
version = "1.5";
|
||||||
|
|
||||||
|
# ps is used in Worker.worker_pids method
|
||||||
|
propagatedBuildInputs = [ simplejson setproctitle redis pkgs.ps ];
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
redis-server &
|
||||||
|
nosetests .
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Python resque clone";
|
||||||
|
homepage = https://github.com/binarydud/pyres;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ jluttine ];
|
||||||
|
};
|
||||||
|
}
|
@ -585,6 +585,8 @@ in {
|
|||||||
|
|
||||||
pyparser = callPackage ../development/python-modules/pyparser { };
|
pyparser = callPackage ../development/python-modules/pyparser { };
|
||||||
|
|
||||||
|
pyres = callPackage ../development/python-modules/pyres { };
|
||||||
|
|
||||||
pyqt4 = callPackage ../development/python-modules/pyqt/4.x.nix {
|
pyqt4 = callPackage ../development/python-modules/pyqt/4.x.nix {
|
||||||
pythonPackages = self;
|
pythonPackages = self;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user