3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/system/honcho/default.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pythonPackages }:
2017-07-26 04:21:27 +01:00
let
inherit (pythonPackages) python;
pname = "honcho";
in
pythonPackages.buildPythonApplication rec {
name = "${pname}-${version}";
version = "1.0.1";
namePrefix = "";
2016-09-06 19:58:42 +01:00
src = fetchFromGitHub {
owner = "nickstenning";
repo = "honcho";
rev = "v${version}";
2017-07-26 04:21:27 +01:00
sha256 = "11bd87474qpif20xdcn0ra1idj5k16ka51i658wfpxwc6nzsn92b";
};
2019-01-05 14:22:36 +00:00
checkInputs = with pythonPackages; [ jinja2 pytest mock coverage ];
2017-07-26 04:21:27 +01:00
buildPhase = ''
${python.interpreter} setup.py build
'';
installPhase = ''
2019-01-05 14:22:36 +00:00
mkdir -p "$out/${python.sitePackages}"
2017-07-26 04:21:27 +01:00
2019-01-05 14:22:36 +00:00
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
2017-07-26 04:21:27 +01:00
2019-01-05 14:22:36 +00:00
${python.interpreter} setup.py install \
--install-lib=$out/${python.sitePackages} \
2017-07-26 04:21:27 +01:00
--prefix="$out"
'';
checkPhase = ''
runHook preCheck
2017-07-26 04:21:27 +01:00
PATH=$out/bin:$PATH coverage run -m pytest
runHook postCheck
'';
meta = with stdenv.lib; {
2015-04-28 09:54:58 +01:00
description = "A Python clone of Foreman, a tool for managing Procfile-based applications";
license = licenses.mit;
2015-04-20 13:20:03 +01:00
homepage = https://github.com/nickstenning/honcho;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
2017-07-26 04:21:27 +01:00
}