summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-10-04 10:23:41 +0000
committerGitHub <noreply@github.com>2017-10-04 10:23:41 +0000
commit7c2b617a9fa6f886c7e8d17a5ef2eba40339f3b1 (patch)
treeababe7746476d0fe5ba9a3a2f0c2c0c771913287 /pkgs/tools/misc
parentb1820155e04ae5210a0ebd1a3df20490c23403c7 (diff)
parent11b4512033b011af20fef558f001b9566ebf3aef (diff)
downloadnixlib-7c2b617a9fa6f886c7e8d17a5ef2eba40339f3b1.tar
nixlib-7c2b617a9fa6f886c7e8d17a5ef2eba40339f3b1.tar.gz
nixlib-7c2b617a9fa6f886c7e8d17a5ef2eba40339f3b1.tar.bz2
nixlib-7c2b617a9fa6f886c7e8d17a5ef2eba40339f3b1.tar.lz
nixlib-7c2b617a9fa6f886c7e8d17a5ef2eba40339f3b1.tar.xz
nixlib-7c2b617a9fa6f886c7e8d17a5ef2eba40339f3b1.tar.zst
nixlib-7c2b617a9fa6f886c7e8d17a5ef2eba40339f3b1.zip
Merge pull request #29813 from womfoo/init/bonfire-0.0.7
bonfire: init at 0.0.7
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/bonfire/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/tools/misc/bonfire/default.nix b/pkgs/tools/misc/bonfire/default.nix
new file mode 100644
index 000000000000..7937a212951f
--- /dev/null
+++ b/pkgs/tools/misc/bonfire/default.nix
@@ -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;
+  };
+
+}