c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
49 lines
1 KiB
Nix
49 lines
1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, hiera-eyaml
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "yamlpath";
|
|
version = "3.6.7";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wwkimball";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-lz8n3c+NohZnkbAoF/9rHsGzXW5PWPOsJKUFqqenIRg=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|