mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
53 lines
1,009 B
Nix
53 lines
1,009 B
Nix
{
|
|
lib,
|
|
argparse-dataclass,
|
|
buildPythonPackage,
|
|
dpath,
|
|
fetchFromGitHub,
|
|
numpy,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
uv-build,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yte";
|
|
version = "1.9.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "koesterlab";
|
|
repo = "yte";
|
|
tag = "v${version}";
|
|
hash = "sha256-TpY13HYBZ4qL2W6sPdoM+bpHcEOi0rwubCbFa4zm2I0=";
|
|
};
|
|
|
|
build-system = [ uv-build ];
|
|
|
|
dependencies = [
|
|
dpath
|
|
argparse-dataclass
|
|
pyyaml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
numpy
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "yte" ];
|
|
|
|
preCheck = ''
|
|
# The CLI test need yte on the PATH
|
|
export PATH=$out/bin:$PATH
|
|
'';
|
|
|
|
meta = {
|
|
description = "YAML template engine with Python expressions";
|
|
homepage = "https://github.com/koesterlab/yte";
|
|
changelog = "https://github.com/yte-template-engine/yte/blob/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "yte";
|
|
};
|
|
}
|