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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
lib,
argcomplete,
buildPythonPackage,
fetchPypi,
jq,
pytestCheckHook,
pyyaml,
setuptools,
setuptools-scm,
replaceVars,
tomlkit,
xmltodict,
}:
buildPythonPackage rec {
pname = "yq";
version = "3.4.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-ulhqGm8wz3BbL5IgZxLfIoHNMgKAIQ57e4Cty48lbjs=";
};
patches = [
(replaceVars ./jq-path.patch {
jq = "${lib.getBin jq}/bin/jq";
})
];
build-system = [
setuptools
setuptools-scm
];
dependencies = [
argcomplete
pyyaml
tomlkit
xmltodict
];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "test/test.py" ];
pythonImportsCheck = [ "yq" ];
meta = {
description = "Command-line YAML/XML/TOML processor - jq wrapper for YAML, XML, TOML documents";
homepage = "https://github.com/kislyuk/yq";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
SuperSandro2000
];
mainProgram = "yq";
};
}
|