02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
57 lines
994 B
Nix
57 lines
994 B
Nix
{ lib
|
|
, assertpy
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, lark
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, regex
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycep-parser";
|
|
version = "0.3.8";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gruebel";
|
|
repo = "pycep";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-y6npvFh6/QykOAKK8ihTHDcv5dFd4lLU64UXPIhBELA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
lark
|
|
regex
|
|
typing-extensions
|
|
];
|
|
|
|
checkInputs = [
|
|
assertpy
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace 'regex = "^2022.3.15"' 'regex = "*"'
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"pycep"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python based Bicep parser";
|
|
homepage = "https://github.com/gruebel/pycep";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|