Skip to content

Commit

Permalink
Merge pull request #29813 from womfoo/init/bonfire-0.0.7
Browse files Browse the repository at this point in the history
bonfire: init at 0.0.7
  • Loading branch information
orivej authored Oct 4, 2017
2 parents b182015 + 11b4512 commit 7c2b617
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
44 changes: 44 additions & 0 deletions pkgs/tools/misc/bonfire/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{ stdenv, python3Packages, fetchFromGitHub }:

with python3Packages;

buildPythonApplication rec {
version = "2017-01-19";
pname = "bonfire";
name = "${pname}-unstable-${version}";

# use latest git version with --endpoint flag
# https://github.com/blue-yonder/bonfire/pull/18
src = fetchFromGitHub {
owner = "blue-yonder";
repo = "${pname}";
rev = "d0af9ca10394f366cfa3c60f0741f1f0918011c2";
sha256 = "193zcvzbhxwwkwbgmnlihhhazwkajycxf4r71jz1m12w301sjhq5";
};

postPatch = ''
# https://github.com/blue-yonder/bonfire/pull/24
substituteInPlace requirements.txt \
--replace "arrow>=0.5.4,<0.8" "arrow>=0.5.4,<0.11" \
--replace "keyring>=9,<10" "keyring>=9,<11"
# pip fails when encountering the git hash for the package version
substituteInPlace setup.py \
--replace "version=version," "version='${version}',"
# remove extraneous files
substituteInPlace setup.cfg \
--replace "data_files = *.rst, *.txt" ""
'';

buildInputs = [ httpretty pytest pytestcov ];

propagatedBuildInputs = [ arrow click keyring parsedatetime requests six termcolor ];

meta = with stdenv.lib; {
homepage = https://pypi.python.org/pypi/bonfire;
description = "CLI Graylog Client with Follow Mode";
license = licenses.bsd3;
maintainers = [ maintainers.womfoo ];
platforms = platforms.linux;
};

}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,8 @@ with pkgs;

bonnie = callPackage ../tools/filesystems/bonnie { };

bonfire = callPackage ../tools/misc/bonfire { };

container-linux-config-transpiler = callPackage ../development/tools/container-linux-config-transpiler { };

djmount = callPackage ../tools/filesystems/djmount { };
Expand Down

0 comments on commit 7c2b617

Please sign in to comment.