nixpkgs/pkgs/development/tools/yq/default.nix

24 lines
615 B
Nix
Raw Normal View History

{ lib, buildPythonApplication, fetchPypi, pyyaml, xmltodict, jq }:
2017-11-13 10:32:13 -08:00
buildPythonApplication rec {
pname = "yq";
2019-11-03 04:04:32 -08:00
version = "2.8.1";
2017-11-13 10:32:13 -08:00
2018-02-26 16:02:25 -08:00
propagatedBuildInputs = [ pyyaml xmltodict jq ];
2017-11-13 10:32:13 -08:00
# ValueError: underlying buffer has been detached
doCheck = false;
src = fetchPypi {
inherit pname version;
2019-11-03 04:04:32 -08:00
sha256 = "042p3s011635rbjax9wvwjdrb1kyzw38a6qn59b0j0k7krz6rlr4";
2017-11-13 10:32:13 -08:00
};
meta = with lib; {
description = "Command-line YAML processor - jq wrapper for YAML documents.";
homepage = "https://github.com/kislyuk/yq";
2017-11-13 10:32:13 -08:00
license = [ licenses.asl20 ];
maintainers = [ maintainers.womfoo ];
};
}