python.pkgs.livereload: enable tests

This commit is contained in:
Joerg Thalheim 2017-10-01 11:00:26 +01:00
parent fa2adc6129
commit 6f71cce530

View File

@ -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";