1{ lib
2, fetchFromGitHub
3, hiera-eyaml
4, python3
5}:
6
7python3.pkgs.buildPythonApplication rec {
8 pname = "yamlpath";
9 version = "3.6.9";
10 format = "setuptools";
11
12 src = fetchFromGitHub {
13 owner = "wwkimball";
14 repo = pname;
15 rev = "refs/tags/v${version}";
16 sha256 = "sha256-0r1jlDWlYPIjUEudHbwt324rt0H8K3PUb7RILoxNNnw=";
17 };
18
19 propagatedBuildInputs = with python3.pkgs; [
20 python-dateutil
21 ruamel-yaml
22 ];
23
24 checkInputs = with python3.pkgs; [
25 hiera-eyaml
26 mock
27 pytest-console-scripts
28 pytestCheckHook
29 ];
30
31 preCheck = ''
32 export PATH=$PATH:$out/bin
33 '';
34
35 pythonImportsCheck = [
36 "yamlpath"
37 ];
38
39 meta = with lib; {
40 description = "Command-line processors for YAML/JSON/Compatible data";
41 homepage = "https://github.com/wwkimball/yamlpath";
42 longDescription = ''
43 Command-line get/set/merge/validate/scan/convert/diff processors for YAML/JSON/Compatible data
44 using powerful, intuitive, command-line friendly syntax
45 '';
46 license = licenses.isc;
47 maintainers = with maintainers; [ Flakebi ];
48 };
49}