nixpkgs/pkgs/development/python-modules/yte/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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";
};
}