Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 1.0 kB view raw
1{ stdenv 2, buildPythonPackage 3, fetchurl 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 = fetchurl { 14 url = "https://github.com/dbohdan/jsonwatch/archive/v0.2.0.tar.gz"; 15 sha256 = "04b616ef97b9d8c3887004995420e52b72a4e0480a92dbf60aa6c50317261e06"; 16 }; 17 18 propagatedBuildInputs = [ six ]; 19 20 meta = with stdenv.lib; { 21 description = "Like watch -d but for JSON"; 22 longDescription = '' 23 jsonwatch is a command line utility with which you can track 24 changes in JSON data delivered by a shell command or a web 25 (HTTP/HTTPS) API. jsonwatch requests data from the designated 26 source repeatedly at a set interval and displays the 27 differences when the data changes. It is similar in its 28 behavior to how watch(1) with the -d switch works for 29 plain-text data. 30 ''; 31 homepage = "https://github.com/dbohdan/jsonwatch"; 32 license = licenses.mit; 33 platforms = platforms.all; 34 }; 35}