nixpkgs/pkgs/development/python-modules/livereload/default.nix

35 lines
732 B
Nix
Raw Normal View History

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