mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 05:54:24 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
40 lines
953 B
Nix
40 lines
953 B
Nix
{ lib, fetchFromGitHub, python3Packages }:
|
|
|
|
let
|
|
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 = "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;
|
|
mainProgram = "honcho";
|
|
};
|
|
}
|