at 23.05-pre 981 B view raw
1{ lib 2, buildPythonPackage 3, dpath 4, fetchFromGitHub 5, plac 6, poetry-core 7, pytestCheckHook 8, pythonOlder 9, pyyaml 10}: 11 12buildPythonPackage rec { 13 pname = "yte"; 14 version = "1.5.1"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "koesterlab"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 sha256 = "sha256-7erT5UpejPMIoyqhpYNEON3YWE2l5SdP2olOVpkbNkY="; 24 }; 25 26 nativeBuildInputs = [ 27 poetry-core 28 ]; 29 30 propagatedBuildInputs = [ 31 dpath 32 plac 33 pyyaml 34 ]; 35 36 checkInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "yte" 42 ]; 43 44 pytestFlagsArray = [ 45 "tests.py" 46 ]; 47 48 preCheck = '' 49 # The CLI test need yte on the PATH 50 export PATH=$out/bin:$PATH 51 ''; 52 53 meta = with lib; { 54 description = "YAML template engine with Python expressions"; 55 homepage = "https://github.com/koesterlab/yte"; 56 license = with licenses; [ mit ]; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}