mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 10:56:53 +00:00
3ba16c8234
but instead use the one in pythonPackages.
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, pythonPackages }:
|
|
|
|
let honcho = pythonPackages.buildPythonApplication rec {
|
|
name = "honcho-${version}";
|
|
version = "0.6.6";
|
|
namePrefix = "";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nickstenning";
|
|
repo = "honcho";
|
|
rev = "v${version}";
|
|
sha256 = "0lawwcyrrsd9z9jcr94qn1yabl9bzc529jkpc51jq720fhdlfcr0";
|
|
};
|
|
|
|
buildInputs = with pythonPackages; [ nose mock jinja2 ];
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
nosetests
|
|
runHook postCheck
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A Python clone of Foreman, a tool for managing Procfile-based applications";
|
|
license = licenses.mit;
|
|
homepage = https://github.com/nickstenning/honcho;
|
|
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; })
|