blob: a3c084cc8c6f016e184f32c59101d4e04bda1b22 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, django
, tornado
, six
, pytest
}:
buildPythonPackage rec {
pname = "livereload";
version = "2.6.0";
src = fetchFromGitHub {
owner = "lepture";
repo = "python-livereload";
rev = "v${version}";
sha256 = "0p3yvvr1iv3fv3pwc2qfzl3mi3b5zv6dh7kmfm1k7krxvganj87n";
};
buildInputs = [ nose django ];
propagatedBuildInputs = [ tornado six ];
# Remove this patch when PR merged
# https://github.com/lepture/python-livereload/pull/173
postPatch = ''
substituteInPlace tests/test_watcher.py \
--replace 'watcher.watch(filepath, add_count)' \
'add_count.repr_str = "add_count test task"; watcher.watch(filepath, add_count)'
'';
checkInputs = [ pytest ];
checkPhase = "pytest tests";
meta = {
description = "Runs a local server that reloads as you develop";
homepage = "https://github.com/lepture/python-livereload";
license = lib.licenses.bsd3;
};
}
|