nixpkgs/pkgs/development/python-modules/livereload/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

35 lines
732 B
Nix

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