depot/third_party/nixpkgs/pkgs/development/tools/yamlpath/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

49 lines
1.1 KiB
Nix

{ lib
, fetchFromGitHub
, hiera-eyaml
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "yamlpath";
version = "3.6.9";
format = "setuptools";
src = fetchFromGitHub {
owner = "wwkimball";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-0r1jlDWlYPIjUEudHbwt324rt0H8K3PUb7RILoxNNnw=";
};
propagatedBuildInputs = with python3.pkgs; [
python-dateutil
ruamel-yaml
];
checkInputs = with python3.pkgs; [
hiera-eyaml
mock
pytest-console-scripts
pytestCheckHook
];
preCheck = ''
export PATH=$PATH:$out/bin
'';
pythonImportsCheck = [
"yamlpath"
];
meta = with lib; {
description = "Command-line processors for YAML/JSON/Compatible data";
homepage = "https://github.com/wwkimball/yamlpath";
longDescription = ''
Command-line get/set/merge/validate/scan/convert/diff processors for YAML/JSON/Compatible data
using powerful, intuitive, command-line friendly syntax
'';
license = licenses.isc;
maintainers = with maintainers; [ Flakebi ];
};
}