2022-06-27 07:38:11 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hiera-eyaml
|
|
|
|
, python3
|
|
|
|
}:
|
2022-10-09 17:06:57 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2022-06-27 07:38:11 +00:00
|
|
|
pname = "yamlpath";
|
2023-04-15 11:38:29 +00:00
|
|
|
version = "3.8.0";
|
2022-10-09 17:06:57 +00:00
|
|
|
format = "setuptools";
|
2022-06-27 07:38:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wwkimball";
|
|
|
|
repo = pname;
|
2022-11-02 10:41:46 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-15 11:38:29 +00:00
|
|
|
sha256 = "sha256-6N2s/LWFa3mgMQ88rt3IaWk+b2PTWfT7z1mi+ioQEyU=";
|
2022-06-27 07:38:11 +00:00
|
|
|
};
|
|
|
|
|
2022-10-09 17:06:57 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
python-dateutil
|
|
|
|
ruamel-yaml
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-10-09 17:06:57 +00:00
|
|
|
hiera-eyaml
|
|
|
|
mock
|
|
|
|
pytest-console-scripts
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-06-27 07:38:11 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PATH=$PATH:$out/bin
|
|
|
|
'';
|
|
|
|
|
2022-10-09 17:06:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"yamlpath"
|
|
|
|
];
|
|
|
|
|
2022-06-27 07:38:11 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line processors for YAML/JSON/Compatible data";
|
2022-10-09 17:06:57 +00:00
|
|
|
homepage = "https://github.com/wwkimball/yamlpath";
|
2023-04-15 11:38:29 +00:00
|
|
|
changelog = "https://github.com/wwkimball/yamlpath/releases/tag/v${version}";
|
2022-06-27 07:38:11 +00:00
|
|
|
longDescription = ''
|
2022-10-09 17:06:57 +00:00
|
|
|
Command-line get/set/merge/validate/scan/convert/diff processors for YAML/JSON/Compatible data
|
|
|
|
using powerful, intuitive, command-line friendly syntax
|
2022-06-27 07:38:11 +00:00
|
|
|
'';
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ Flakebi ];
|
2023-11-26 21:31:44 +00:00
|
|
|
|
|
|
|
# No support for ruamel.yaml > 0.17.21
|
|
|
|
# https://github.com/wwkimball/yamlpath/issues/217
|
|
|
|
broken = true;
|
2022-06-27 07:38:11 +00:00
|
|
|
};
|
|
|
|
}
|