2017-09-26 13:34:43 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2017-10-01 11:00:26 +01:00
|
|
|
, fetchFromGitHub
|
2017-09-26 13:34:43 +01:00
|
|
|
, nose
|
|
|
|
, django
|
|
|
|
, tornado
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "livereload";
|
2019-05-23 19:21:18 +01:00
|
|
|
version = "2.6.1";
|
2017-09-26 13:34:43 +01:00
|
|
|
|
2017-10-01 11:00:26 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lepture";
|
|
|
|
repo = "python-livereload";
|
|
|
|
rev = "v${version}";
|
2019-05-23 19:21:18 +01:00
|
|
|
sha256 = "15v2a0af897ijnsfjh2r8f7l5zi5i2jdm6z0xzlyyvp9pxd6mpfm";
|
2017-09-26 13:34:43 +01:00
|
|
|
};
|
|
|
|
|
2019-05-23 19:21:18 +01:00
|
|
|
buildInputs = [ django ];
|
2017-09-26 13:34:43 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ tornado six ];
|
|
|
|
|
2019-05-23 19:21:18 +01:00
|
|
|
checkInputs = [ nose ];
|
|
|
|
# TODO: retry running all tests after v2.6.1
|
|
|
|
checkPhase = "NOSE_EXCLUDE=test_watch_multiple_dirs nosetests -s";
|
2017-10-01 11:00:26 +01:00
|
|
|
|
2017-09-26 13:34:43 +01:00
|
|
|
meta = {
|
|
|
|
description = "Runs a local server that reloads as you develop";
|
|
|
|
homepage = "https://github.com/lepture/python-livereload";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|