pythonPackages.livereload: 2.5.1 -> 2.6.0

This commit is contained in:
Chris Ostrouchov 2018-11-29 06:52:21 -05:00 committed by Frederik Rietdijk
parent 8a5d9dd379
commit 4149c51ed1

View File

@ -10,19 +10,27 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "livereload"; pname = "livereload";
version = "2.5.1"; version = "2.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "lepture"; owner = "lepture";
repo = "python-livereload"; repo = "python-livereload";
rev = "v${version}"; rev = "v${version}";
sha256 = "1irs59wqmffp8q4l9fh7givs05mamlgm5n7ga49gwxp5imwrdzba"; sha256 = "0p3yvvr1iv3fv3pwc2qfzl3mi3b5zv6dh7kmfm1k7krxvganj87n";
}; };
buildInputs = [ nose django ]; buildInputs = [ nose django ];
propagatedBuildInputs = [ tornado six ]; 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 ]; checkInputs = [ pytest ];
checkPhase = "pytest tests"; checkPhase = "pytest tests";