1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, nose
5, django
6, tornado
7, six
8}:
9
10buildPythonPackage rec {
11 pname = "livereload";
12 version = "2.6.1";
13
14 src = fetchFromGitHub {
15 owner = "lepture";
16 repo = "python-livereload";
17 rev = "v${version}";
18 sha256 = "15v2a0af897ijnsfjh2r8f7l5zi5i2jdm6z0xzlyyvp9pxd6mpfm";
19 };
20
21 buildInputs = [ django ];
22
23 propagatedBuildInputs = [ tornado six ];
24
25 checkInputs = [ nose ];
26 # TODO: retry running all tests after v2.6.1
27 checkPhase = "NOSE_EXCLUDE=test_watch_multiple_dirs nosetests -s";
28
29 meta = {
30 description = "Runs a local server that reloads as you develop";
31 homepage = "https://github.com/lepture/python-livereload";
32 license = lib.licenses.bsd3;
33 };
34}