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

24 lines
633 B
Nix
Raw Normal View History

2018-02-27 00:02:25 +00:00
{ stdenv, lib, buildPythonApplication, fetchPypi, pyyaml, xmltodict, jq }:
2017-11-13 18:32:13 +00:00
buildPythonApplication rec {
pname = "yq";
2018-02-26 17:48:07 +00:00
version = "2.4.1";
2017-11-13 18:32:13 +00:00
2018-02-27 00:02:25 +00:00
propagatedBuildInputs = [ pyyaml xmltodict jq ];
2017-11-13 18:32:13 +00:00
# ValueError: underlying buffer has been detached
doCheck = false;
src = fetchPypi {
inherit pname version;
2018-02-26 17:48:07 +00:00
sha256 = "4833d4055b0f1c1f1a2fd292421b3472da39c7dc2727d7819efd11065a5fd310";
2017-11-13 18:32:13 +00:00
};
meta = with lib; {
description = "Command-line YAML processor - jq wrapper for YAML documents.";
2018-02-27 00:02:25 +00:00
homepage = https://github.com/kislyuk/yq;
2017-11-13 18:32:13 +00:00
license = [ licenses.asl20 ];
maintainers = [ maintainers.womfoo ];
};
}