diff --git a/pkgs/development/python-modules/livereload/default.nix b/pkgs/development/python-modules/livereload/default.nix index fba324d43930..fa9067fa0fee 100644 --- a/pkgs/development/python-modules/livereload/default.nix +++ b/pkgs/development/python-modules/livereload/default.nix @@ -1,10 +1,11 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , nose , django , tornado , six +, pytest }: buildPythonPackage rec { @@ -12,15 +13,20 @@ buildPythonPackage rec { version = "2.5.1"; name = "${pname}-${version}"; - src = fetchPypi { - inherit pname version; - sha256 = "0b2yyfnpddmrwjfqsndidzchkf3l9jlgzfkwl8dplim9gq6y2ba2"; + src = fetchFromGitHub { + owner = "lepture"; + repo = "python-livereload"; + rev = "v${version}"; + sha256 = "1irs59wqmffp8q4l9fh7givs05mamlgm5n7ga49gwxp5imwrdzba"; }; buildInputs = [ nose django ]; propagatedBuildInputs = [ tornado six ]; + checkInputs = [ pytest ]; + checkPhase = "pytest tests"; + meta = { description = "Runs a local server that reloads as you develop"; homepage = "https://github.com/lepture/python-livereload";