jsonwatch: move to tools
This commit is contained in:
parent
b20e488f18
commit
f982bc9daf
|
@ -1,37 +1,38 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, six
|
, rustPlatform
|
||||||
, isPyPy
|
, Security
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "jsonwatch";
|
pname = "jsonwatch";
|
||||||
version = "0.2.0";
|
version = "0.6.0";
|
||||||
disabled = isPyPy; # doesn't find setuptools
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dbohdan";
|
owner = "dbohdan";
|
||||||
repo = "jsonwatch";
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-yLN6jOxAz+B7zvV3tGT6Nxi17v9ZOtWpbtSi0o1h48U=";
|
sha256 = "sha256-TGW04P8t0mAXza7I7qp6QRXA/MDE3m1dlRC7bMf2dSk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six ];
|
cargoSha256 = "sha256-Gjb7v3kz11iOml3Ykxhy43KNxzaprgMbb5DpPNChLTc=";
|
||||||
|
|
||||||
|
buildInputs = lib.optional stdenv.isDarwin [
|
||||||
|
Security
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Like watch -d but for JSON";
|
description = "Like watch -d but for JSON";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
jsonwatch is a command line utility with which you can track
|
jsonwatch is a command line utility with which you can track
|
||||||
changes in JSON data delivered by a shell command or a web
|
changes in JSON data delivered by a shell command or a web
|
||||||
(HTTP/HTTPS) API. jsonwatch requests data from the designated
|
(HTTP/HTTPS) API. jsonwatch requests data from the designated
|
||||||
source repeatedly at a set interval and displays the
|
source repeatedly at a set interval and displays the
|
||||||
differences when the data changes. It is similar in its
|
differences when the data changes.
|
||||||
behavior to how watch(1) with the -d switch works for
|
|
||||||
plain-text data.
|
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/dbohdan/jsonwatch";
|
homepage = "https://github.com/dbohdan/jsonwatch";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.all;
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -6724,6 +6724,10 @@ with pkgs;
|
||||||
|
|
||||||
json-schema-for-humans = with python3Packages; toPythonApplication json-schema-for-humans;
|
json-schema-for-humans = with python3Packages; toPythonApplication json-schema-for-humans;
|
||||||
|
|
||||||
|
jsonwatch = callPackage ../tools/misc/jsonwatch {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
};
|
||||||
|
|
||||||
jtc = callPackage ../development/tools/jtc { };
|
jtc = callPackage ../development/tools/jtc { };
|
||||||
|
|
||||||
jumpapp = callPackage ../tools/X11/jumpapp {};
|
jumpapp = callPackage ../tools/X11/jumpapp {};
|
||||||
|
|
|
@ -4095,8 +4095,6 @@ in {
|
||||||
|
|
||||||
jsonstreams = callPackage ../development/python-modules/jsonstreams { };
|
jsonstreams = callPackage ../development/python-modules/jsonstreams { };
|
||||||
|
|
||||||
jsonwatch = callPackage ../development/python-modules/jsonwatch { };
|
|
||||||
|
|
||||||
jug = callPackage ../development/python-modules/jug { };
|
jug = callPackage ../development/python-modules/jug { };
|
||||||
|
|
||||||
junitparser = callPackage ../development/python-modules/junitparser { };
|
junitparser = callPackage ../development/python-modules/junitparser { };
|
||||||
|
|
Loading…
Reference in a new issue