nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3Packages,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "honcho";
9 version = "2.0.0";
10 pyproject = true;
11
12 src = fetchFromGitHub {
13 owner = "nickstenning";
14 repo = "honcho";
15 tag = "v${version}";
16 hash = "sha256-hXPoqxK9jzCn7KrQ6zH0E/3YVC60OSoiUx6654+bhhw=";
17 };
18
19 build-system = with python3Packages; [
20 setuptools
21 setuptools-scm
22 ];
23
24 nativeCheckInputs = with python3Packages; [
25 jinja2
26 pytest
27 mock
28 coverage
29 ];
30
31 # missing plugins
32 doCheck = false;
33
34 checkPhase = ''
35 runHook preCheck
36
37 PATH=$out/bin:$PATH coverage run -m pytest
38
39 runHook postCheck
40 '';
41
42 meta = {
43 description = "Python clone of Foreman, a tool for managing Procfile-based applications";
44 license = lib.licenses.mit;
45 homepage = "https://github.com/nickstenning/honcho";
46 maintainers = with lib.maintainers; [ benley ];
47 platforms = lib.platforms.unix;
48 mainProgram = "honcho";
49 };
50}