nixpkgs/pkgs/tools/system/honcho/default.nix

41 lines
958 B
Nix
Raw Normal View History

2021-03-26 09:17:01 +01:00
{ lib, fetchFromGitHub, python3Packages }:
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.1.0";
2016-09-06 20:58:42 +02:00
src = fetchFromGitHub {
owner = "nickstenning";
repo = "honcho";
rev = "v${version}";
sha256 = "1y0r8dw4pqcq7r4n58ixjdg1iy60lp0gxsd7d2jmhals16ij71rj";
};
propagatedBuildInputs = [ python3Packages.setuptools ];
2017-07-26 05:21:27 +02:00
checkInputs = with python3Packages; [ jinja2 pytest mock coverage ];
2017-07-26 05:21:27 +02:00
# missing plugins
doCheck = false;
2017-07-26 05:21:27 +02:00
checkPhase = ''
runHook preCheck
2017-07-26 05:21:27 +02:00
PATH=$out/bin:$PATH coverage run -m pytest
runHook postCheck
'';
meta = with lib; {
2015-04-28 10:54:58 +02: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;
};
2017-07-26 05:21:27 +02:00
}