mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
55 lines
1.3 KiB
Nix
55 lines
1.3 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, hiera-eyaml
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "yamlpath";
|
|
version = "3.8.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wwkimball";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-6N2s/LWFa3mgMQ88rt3IaWk+b2PTWfT7z1mi+ioQEyU=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
python-dateutil
|
|
ruamel-yaml
|
|
];
|
|
|
|
nativeCheckInputs = 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";
|
|
changelog = "https://github.com/wwkimball/yamlpath/releases/tag/v${version}";
|
|
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 ];
|
|
|
|
# No support for ruamel.yaml > 0.17.21
|
|
# https://github.com/wwkimball/yamlpath/issues/217
|
|
broken = true;
|
|
};
|
|
}
|