From 6f71cce5304a51e004a1cd383a3659f7f2f0591d Mon Sep 17 00:00:00 2001 From: Joerg Thalheim Date: Sun, 1 Oct 2017 11:00:26 +0100 Subject: [PATCH] python.pkgs.livereload: enable tests --- .../python-modules/livereload/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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";