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
|
2017-10-01 11:00:26 +01:00
|
|
|
, pytest
|
2017-09-26 13:34:43 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "livereload";
|
|
|
|
version = "2.5.1";
|
|
|
|
|
2017-10-01 11:00:26 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lepture";
|
|
|
|
repo = "python-livereload";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1irs59wqmffp8q4l9fh7givs05mamlgm5n7ga49gwxp5imwrdzba";
|
2017-09-26 13:34:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ nose django ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ tornado six ];
|
|
|
|
|
2017-10-01 11:00:26 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = "pytest tests";
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|