3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/yamlpath/default.nix

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

50 lines
1.1 KiB
Nix
Raw Normal View History

2022-06-27 08:38:11 +01:00
{ lib
, fetchFromGitHub
, hiera-eyaml
, python3
}:
2022-10-09 18:06:57 +01:00
python3.pkgs.buildPythonApplication rec {
2022-06-27 08:38:11 +01:00
pname = "yamlpath";
2022-11-06 15:40:25 +00:00
version = "3.6.9";
2022-10-09 18:06:57 +01:00
format = "setuptools";
2022-06-27 08:38:11 +01:00
src = fetchFromGitHub {
owner = "wwkimball";
repo = pname;
2022-11-02 10:41:46 +00:00
rev = "refs/tags/v${version}";
2022-11-06 15:40:25 +00:00
sha256 = "sha256-0r1jlDWlYPIjUEudHbwt324rt0H8K3PUb7RILoxNNnw=";
2022-06-27 08:38:11 +01:00
};
2022-10-09 18:06:57 +01:00
propagatedBuildInputs = with python3.pkgs; [
python-dateutil
ruamel-yaml
];
checkInputs = with python3.pkgs; [
hiera-eyaml
mock
pytest-console-scripts
pytestCheckHook
];
2022-06-27 08:38:11 +01:00
preCheck = ''
export PATH=$PATH:$out/bin
'';
2022-10-09 18:06:57 +01:00
pythonImportsCheck = [
"yamlpath"
];
2022-06-27 08:38:11 +01:00
meta = with lib; {
description = "Command-line processors for YAML/JSON/Compatible data";
2022-10-09 18:06:57 +01:00
homepage = "https://github.com/wwkimball/yamlpath";
2022-06-27 08:38:11 +01:00
longDescription = ''
2022-10-09 18:06:57 +01: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 08:38:11 +01:00
'';
license = licenses.isc;
maintainers = with maintainers; [ Flakebi ];
};
}