about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/system/honcho/default.nix
blob: c7e25e5785208c1510eabfa3d98f7a614edfefd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib, fetchFromGitHub, python3Packages }:

let
  inherit (python3Packages) python;
  pname = "honcho";

in

python3Packages.buildPythonApplication rec {
  name = "${pname}-${version}";
  version = "1.1.0";

  src = fetchFromGitHub {
    owner = "nickstenning";
    repo = "honcho";
    rev = "v${version}";
    sha256 = "1y0r8dw4pqcq7r4n58ixjdg1iy60lp0gxsd7d2jmhals16ij71rj";
  };

  propagatedBuildInputs = [ python3Packages.setuptools ];

  nativeCheckInputs = with python3Packages; [ jinja2 pytest mock coverage ];

  # missing plugins
  doCheck = false;

  checkPhase = ''
    runHook preCheck
    PATH=$out/bin:$PATH coverage run -m pytest
    runHook postCheck
  '';

  meta = with 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;
  };
}