2016-02-19 12:12:11 +00:00
|
|
|
{ stdenv, fetchzip, pythonPackages, buildPythonApplication }:
|
2015-03-19 06:09:58 +00:00
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
let honcho = buildPythonApplication rec {
|
2015-03-19 06:09:58 +00:00
|
|
|
name = "honcho-${version}";
|
|
|
|
version = "0.6.6";
|
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/nickstenning/honcho/archive/v${version}.tar.gz";
|
2016-09-06 00:08:10 +00:00
|
|
|
sha256 = "1ishyzvq19hdln2nn3bjlk0kwfqsbddpypp28n88jp3px6832w02";
|
2015-03-19 06:09:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = with pythonPackages; [ nose mock jinja2 ];
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
nosetests
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-04-28 08:54:58 +00:00
|
|
|
description = "A Python clone of Foreman, a tool for managing Procfile-based applications";
|
2015-03-19 06:09:58 +00:00
|
|
|
license = licenses.mit;
|
2015-04-20 12:20:03 +00:00
|
|
|
homepage = https://github.com/nickstenning/honcho;
|
2015-03-19 06:09:58 +00:00
|
|
|
maintainers = with maintainers; [ benley ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
# Some of honcho's tests require that honcho be installed in the environment in
|
|
|
|
# order to work. This is a trick to build it without running tests, then pass
|
|
|
|
# it to itself as a buildInput so the tests work.
|
|
|
|
honcho.overrideDerivation (x: { buildInputs = [ honcho ]; doCheck = true; })
|