2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hiera-eyaml
|
|
|
|
, python3
|
|
|
|
}:
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2022-07-14 12:49:19 +00:00
|
|
|
pname = "yamlpath";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "3.7.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
format = "setuptools";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wwkimball";
|
|
|
|
repo = pname;
|
2022-11-02 22:02:43 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-07WP3VoWtcUwqkJOC9FcYxV0832DH6KPcGIDAn1QEYc=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
python-dateutil
|
|
|
|
ruamel-yaml
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-10-21 18:38:19 +00:00
|
|
|
hiera-eyaml
|
|
|
|
mock
|
|
|
|
pytest-console-scripts
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PATH=$PATH:$out/bin
|
|
|
|
'';
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"yamlpath"
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line processors for YAML/JSON/Compatible data";
|
2022-10-21 18:38:19 +00:00
|
|
|
homepage = "https://github.com/wwkimball/yamlpath";
|
2022-07-14 12:49:19 +00:00
|
|
|
longDescription = ''
|
2022-10-21 18:38:19 +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-07-14 12:49:19 +00:00
|
|
|
'';
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ Flakebi ];
|
|
|
|
};
|
|
|
|
}
|