aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/tools/yq/default.nix
blob: cfca8a32f93f60eaa3ab11f5a76f0b3cfa78fbeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ 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 ];
  };
}