nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.0 kB view raw
1{ 2 lib, 3 argparse-dataclass, 4 buildPythonPackage, 5 dpath, 6 fetchFromGitHub, 7 numpy, 8 pytestCheckHook, 9 pyyaml, 10 uv-build, 11}: 12 13buildPythonPackage rec { 14 pname = "yte"; 15 version = "1.9.4"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "koesterlab"; 20 repo = "yte"; 21 tag = "v${version}"; 22 hash = "sha256-TpY13HYBZ4qL2W6sPdoM+bpHcEOi0rwubCbFa4zm2I0="; 23 }; 24 25 build-system = [ uv-build ]; 26 27 dependencies = [ 28 dpath 29 argparse-dataclass 30 pyyaml 31 ]; 32 33 nativeCheckInputs = [ 34 numpy 35 pytestCheckHook 36 ]; 37 38 pythonImportsCheck = [ "yte" ]; 39 40 preCheck = '' 41 # The CLI test need yte on the PATH 42 export PATH=$out/bin:$PATH 43 ''; 44 45 meta = { 46 description = "YAML template engine with Python expressions"; 47 homepage = "https://github.com/koesterlab/yte"; 48 changelog = "https://github.com/yte-template-engine/yte/blob/${src.tag}/CHANGELOG.md"; 49 license = lib.licenses.mit; 50 maintainers = with lib.maintainers; [ fab ]; 51 mainProgram = "yte"; 52 }; 53}