22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
57 lines
979 B
Nix
57 lines
979 B
Nix
{ lib
|
|
, assertpy
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, lark
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, regex
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycep-parser";
|
|
version = "0.3.4";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gruebel";
|
|
repo = "pycep";
|
|
rev = version;
|
|
hash = "sha256-o2sYPvZVevDqZV8EtKWTL2zHHzX2kmTZ4iVHsUhFv7M=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|