python37Packages.livereload: 2.6.0 -> 2.6.1 (#61905)
* python37Packages.livereload: 2.6.0 -> 2.6.1 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-livereload/versions * python.pkgs.livereload: fix v2.6.1 build But the newly added test 'test_watch_multiple_dirs' is failing consistently
This commit is contained in:
parent
c269a4098c
commit
506f86186c
@ -5,34 +5,26 @@
|
|||||||
, django
|
, django
|
||||||
, tornado
|
, tornado
|
||||||
, six
|
, six
|
||||||
, pytest
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "livereload";
|
pname = "livereload";
|
||||||
version = "2.6.0";
|
version = "2.6.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lepture";
|
owner = "lepture";
|
||||||
repo = "python-livereload";
|
repo = "python-livereload";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0p3yvvr1iv3fv3pwc2qfzl3mi3b5zv6dh7kmfm1k7krxvganj87n";
|
sha256 = "15v2a0af897ijnsfjh2r8f7l5zi5i2jdm6z0xzlyyvp9pxd6mpfm";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ nose django ];
|
buildInputs = [ django ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ tornado six ];
|
propagatedBuildInputs = [ tornado six ];
|
||||||
|
|
||||||
# Remove this patch when PR merged
|
checkInputs = [ nose ];
|
||||||
# https://github.com/lepture/python-livereload/pull/173
|
# TODO: retry running all tests after v2.6.1
|
||||||
postPatch = ''
|
checkPhase = "NOSE_EXCLUDE=test_watch_multiple_dirs nosetests -s";
|
||||||
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";
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Runs a local server that reloads as you develop";
|
description = "Runs a local server that reloads as you develop";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user