nixpkgs/pkgs/development/tools/yamlpath/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.3 KiB
Nix
Raw Normal View History

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";
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}";
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
];
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";
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 ];
# 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
};
}