2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
assertpy,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lark,
|
|
|
|
poetry-core,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
regex,
|
|
|
|
typing-extensions,
|
2022-03-10 19:12:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycep-parser";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.4.2";
|
2022-03-10 19:12:11 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gruebel";
|
|
|
|
repo = "pycep";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-qogUjj/GwMGwFEin+xJCSOCf5Ut8bgsFakyoMhkyKgU=";
|
2022-03-10 19:12:11 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
lark
|
|
|
|
regex
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-10 19:12:11 +00:00
|
|
|
assertpy
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pycep" ];
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python based Bicep parser";
|
|
|
|
homepage = "https://github.com/gruebel/pycep";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/gruebel/pycep/blob/${version}/CHANGELOG.md";
|
2022-03-10 19:12:11 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|