1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, six
5, isPyPy
6}:
7
8buildPythonPackage rec {
9 pname = "jsonwatch";
10 version = "0.2.0";
11 disabled = isPyPy; # doesn't find setuptools
12
13 src = fetchFromGitHub {
14 owner = "dbohdan";
15 repo = "jsonwatch";
16 rev = "v${version}";
17 sha256 = "sha256-yLN6jOxAz+B7zvV3tGT6Nxi17v9ZOtWpbtSi0o1h48U=";
18 };
19
20 propagatedBuildInputs = [ six ];
21
22 meta = with lib; {
23 description = "Like watch -d but for JSON";
24 longDescription = ''
25 jsonwatch is a command line utility with which you can track
26 changes in JSON data delivered by a shell command or a web
27 (HTTP/HTTPS) API. jsonwatch requests data from the designated
28 source repeatedly at a set interval and displays the
29 differences when the data changes. It is similar in its
30 behavior to how watch(1) with the -d switch works for
31 plain-text data.
32 '';
33 homepage = "https://github.com/dbohdan/jsonwatch";
34 license = licenses.mit;
35 platforms = platforms.all;
36 };
37}