1{ lib 2, assertpy 3, buildPythonPackage 4, fetchFromGitHub 5, lark 6, poetry-core 7, pytestCheckHook 8, pythonOlder 9, regex 10, typing-extensions 11}: 12 13buildPythonPackage rec { 14 pname = "pycep-parser"; 15 version = "0.4.2"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "gruebel"; 22 repo = "pycep"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-qogUjj/GwMGwFEin+xJCSOCf5Ut8bgsFakyoMhkyKgU="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 lark 33 regex 34 typing-extensions 35 ]; 36 37 nativeCheckInputs = [ 38 assertpy 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "pycep" 44 ]; 45 46 meta = with lib; { 47 description = "Python based Bicep parser"; 48 homepage = "https://github.com/gruebel/pycep"; 49 changelog = "https://github.com/gruebel/pycep/blob/${version}/CHANGELOG.md"; 50 license = with licenses; [ asl20 ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}