2021-03-26 09:17:01 +01:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2015-03-19 07:09:58 +01:00
|
|
|
|
2017-07-26 05:21:27 +02:00
|
|
|
let
|
2021-03-26 09:17:01 +01:00
|
|
|
inherit (python3Packages) python;
|
2017-07-26 05:21:27 +02:00
|
|
|
pname = "honcho";
|
|
|
|
|
|
|
|
in
|
|
|
|
|
2021-03-26 09:17:01 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2017-07-26 05:21:27 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
version = "1.0.1";
|
2015-03-19 07:09:58 +01:00
|
|
|
|
2016-09-06 20:58:42 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nickstenning";
|
|
|
|
repo = "honcho";
|
|
|
|
rev = "v${version}";
|
2017-07-26 05:21:27 +02:00
|
|
|
sha256 = "11bd87474qpif20xdcn0ra1idj5k16ka51i658wfpxwc6nzsn92b";
|
2015-03-19 07:09:58 +01:00
|
|
|
};
|
|
|
|
|
2021-03-26 09:17:01 +01:00
|
|
|
checkInputs = with python3Packages; [ jinja2 pytest mock coverage ];
|
2017-07-26 05:21:27 +02:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
${python.interpreter} setup.py build
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-01-05 15:22:36 +01:00
|
|
|
mkdir -p "$out/${python.sitePackages}"
|
2017-07-26 05:21:27 +02:00
|
|
|
|
2019-01-05 15:22:36 +01:00
|
|
|
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
|
2017-07-26 05:21:27 +02:00
|
|
|
|
2019-01-05 15:22:36 +01:00
|
|
|
${python.interpreter} setup.py install \
|
|
|
|
--install-lib=$out/${python.sitePackages} \
|
2017-07-26 05:21:27 +02:00
|
|
|
--prefix="$out"
|
|
|
|
'';
|
|
|
|
|
2015-03-19 07:09:58 +01:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
2017-07-26 05:21:27 +02:00
|
|
|
PATH=$out/bin:$PATH coverage run -m pytest
|
2015-03-19 07:09:58 +01:00
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2015-04-28 10:54:58 +02:00
|
|
|
description = "A Python clone of Foreman, a tool for managing Procfile-based applications";
|
2015-03-19 07:09:58 +01:00
|
|
|
license = licenses.mit;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/nickstenning/honcho";
|
2015-03-19 07:09:58 +01:00
|
|
|
maintainers = with maintainers; [ benley ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2017-07-26 05:21:27 +02:00
|
|
|
}
|