depot/third_party/nixpkgs/pkgs/development/tools/yq/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

44 lines
755 B
Nix

{ lib
, buildPythonApplication
, fetchPypi
, argcomplete
, pyyaml
, xmltodict
# Test inputs
, coverage
, flake8
, jq
, pytest
, toml
}:
buildPythonApplication rec {
pname = "yq";
version = "2.10.1";
propagatedBuildInputs = [ pyyaml xmltodict jq argcomplete ];
doCheck = true;
checkInputs = [
pytest
coverage
flake8
jq
toml
];
checkPhase = "pytest ./test/test.py";
src = fetchPypi {
inherit pname version;
sha256 = "1h6nnkp53mm4spwy8nyxwvh9j6p4lxvf20j4bgjskhnhaw3jl9gn";
};
meta = with lib; {
description = "Command-line YAML processor - jq wrapper for YAML documents.";
homepage = "https://github.com/kislyuk/yq";
license = [ licenses.asl20 ];
maintainers = [ maintainers.womfoo ];
};
}