python3Packages.pycep-parser: init at 0.3.1

This commit is contained in:
Fabian Affolter 2022-03-07 16:49:44 +01:00
parent e284b8d4d5
commit 7edc60c31e
2 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,58 @@
{ lib
, assertpy
, buildPythonPackage
, fetchFromGitHub
, lark
, poetry-core
, pytestCheckHook
, pythonOlder
, regex
, typing-extensions
}:
buildPythonPackage rec {
pname = "pycep-parser";
version = "0.3.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "gruebel";
repo = "pycep";
rev = version;
hash = "sha256-S4jBqMgyreWrEp1SuR8J5RVFc+i1O0xbfgux1UvFP5k=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
lark
regex
typing-extensions
];
checkInputs = [
assertpy
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'version = "0.3.1-alpha.1"' 'version = "${version}"' \
--replace 'regex = "^2022.3.2"' '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 ];
};
}

View File

@ -6717,6 +6717,8 @@ in {
pycec = callPackage ../development/python-modules/pycec { };
pycep-parser = callPackage ../development/python-modules/pycep-parser { };
pycfdns = callPackage ../development/python-modules/pycfdns { };
pycflow2dot = callPackage ../development/python-modules/pycflow2dot {