Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 42 lines 977 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, nose 5, django 6, tornado 7, six 8, pytest 9}: 10 11buildPythonPackage rec { 12 pname = "livereload"; 13 version = "2.6.0"; 14 15 src = fetchFromGitHub { 16 owner = "lepture"; 17 repo = "python-livereload"; 18 rev = "v${version}"; 19 sha256 = "0p3yvvr1iv3fv3pwc2qfzl3mi3b5zv6dh7kmfm1k7krxvganj87n"; 20 }; 21 22 buildInputs = [ nose django ]; 23 24 propagatedBuildInputs = [ tornado six ]; 25 26 # Remove this patch when PR merged 27 # https://github.com/lepture/python-livereload/pull/173 28 postPatch = '' 29 substituteInPlace tests/test_watcher.py \ 30 --replace 'watcher.watch(filepath, add_count)' \ 31 'add_count.repr_str = "add_count test task"; watcher.watch(filepath, add_count)' 32 ''; 33 34 checkInputs = [ pytest ]; 35 checkPhase = "pytest tests"; 36 37 meta = { 38 description = "Runs a local server that reloads as you develop"; 39 homepage = "https://github.com/lepture/python-livereload"; 40 license = lib.licenses.bsd3; 41 }; 42}