about summary refs log tree commit diff
path: root/pkgs/development/python-modules/livereload
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-11-29 06:52:21 -0500
committerFrederik Rietdijk <fridh@fridh.nl>2018-12-03 16:50:41 +0100
commit4149c51ed1bf5b9af9e41880d799146769d48d4c (patch)
tree9790573085f127cb1fabdc64eb645cc4d9ba8efe /pkgs/development/python-modules/livereload
parent8a5d9dd37951b7702d90c346acaef33a97ef98ad (diff)
pythonPackages.livereload: 2.5.1 -> 2.6.0
Diffstat (limited to 'pkgs/development/python-modules/livereload')
-rw-r--r--pkgs/development/python-modules/livereload/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/livereload/default.nix b/pkgs/development/python-modules/livereload/default.nix
index 5c7c7e970c320..a3c084cc8c6f0 100644
--- a/pkgs/development/python-modules/livereload/default.nix
+++ b/pkgs/development/python-modules/livereload/default.nix
@@ -10,19 +10,27 @@
 
 buildPythonPackage rec {
   pname = "livereload";
-  version = "2.5.1";
+  version = "2.6.0";
 
   src = fetchFromGitHub {
     owner = "lepture";
     repo = "python-livereload";
     rev = "v${version}";
-    sha256 = "1irs59wqmffp8q4l9fh7givs05mamlgm5n7ga49gwxp5imwrdzba";
+    sha256 = "0p3yvvr1iv3fv3pwc2qfzl3mi3b5zv6dh7kmfm1k7krxvganj87n";
   };
 
   buildInputs = [ nose django ];
 
   propagatedBuildInputs = [ tornado six ];
 
+  # Remove this patch when PR merged
+  # https://github.com/lepture/python-livereload/pull/173
+  postPatch = ''
+   substituteInPlace tests/test_watcher.py \
+     --replace 'watcher.watch(filepath, add_count)' \
+               'add_count.repr_str = "add_count test task"; watcher.watch(filepath, add_count)'
+  '';
+
   checkInputs = [ pytest ];
   checkPhase = "pytest tests";