2021-03-26 08:17:01 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2015-03-19 06:09:58 +00:00
|
|
|
|
2017-07-26 03:21:27 +00:00
|
|
|
let
|
|
|
|
pname = "honcho";
|
|
|
|
in
|
|
|
|
|
2021-03-26 08:17:01 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2017-07-26 03:21:27 +00:00
|
|
|
name = "${pname}-${version}";
|
2021-10-31 17:44:38 +00:00
|
|
|
version = "1.1.0";
|
2015-03-19 06:09:58 +00:00
|
|
|
|
2016-09-06 18:58:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nickstenning";
|
|
|
|
repo = "honcho";
|
|
|
|
rev = "v${version}";
|
2021-10-31 17:44:38 +00:00
|
|
|
sha256 = "1y0r8dw4pqcq7r4n58ixjdg1iy60lp0gxsd7d2jmhals16ij71rj";
|
2015-03-19 06:09:58 +00:00
|
|
|
};
|
|
|
|
|
2021-10-31 17:44:38 +00:00
|
|
|
propagatedBuildInputs = [ python3Packages.setuptools ];
|
2017-07-26 03:21:27 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [ jinja2 pytest mock coverage ];
|
2017-07-26 03:21:27 +00:00
|
|
|
|
2021-10-31 17:44:38 +00:00
|
|
|
# missing plugins
|
|
|
|
doCheck = false;
|
2017-07-26 03:21:27 +00:00
|
|
|
|
2015-03-19 06:09:58 +00:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
2017-07-26 03:21:27 +00:00
|
|
|
PATH=$out/bin:$PATH coverage run -m pytest
|
2015-03-19 06:09:58 +00:00
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/nickstenning/honcho";
|
2015-03-19 06:09:58 +00:00
|
|
|
maintainers = with maintainers; [ benley ];
|
|
|
|
platforms = platforms.unix;
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "honcho";
|
2015-03-19 06:09:58 +00:00
|
|
|
};
|
2017-07-26 03:21:27 +00:00
|
|
|
}
|