2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, pythonPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pythonPackages) python;
|
|
|
|
pname = "honcho";
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
version = "1.0.1";
|
|
|
|
namePrefix = "";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nickstenning";
|
|
|
|
repo = "honcho";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "11bd87474qpif20xdcn0ra1idj5k16ka51i658wfpxwc6nzsn92b";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = with pythonPackages; [ jinja2 pytest mock coverage ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
${python.interpreter} setup.py build
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/${python.sitePackages}"
|
|
|
|
|
|
|
|
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
|
|
|
|
|
|
|
|
${python.interpreter} setup.py install \
|
|
|
|
--install-lib=$out/${python.sitePackages} \
|
|
|
|
--prefix="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
PATH=$out/bin:$PATH coverage run -m pytest
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|