2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
53 lines
965 B
Nix
53 lines
965 B
Nix
{ lib
|
|
, assertpy
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, lark
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, regex
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycep-parser";
|
|
version = "0.4.2";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gruebel";
|
|
repo = "pycep";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-qogUjj/GwMGwFEin+xJCSOCf5Ut8bgsFakyoMhkyKgU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
lark
|
|
regex
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
assertpy
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pycep"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python based Bicep parser";
|
|
homepage = "https://github.com/gruebel/pycep";
|
|
changelog = "https://github.com/gruebel/pycep/blob/${version}/CHANGELOG.md";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|