My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pycep-parser/default.nix

57 lines
994 B

{ lib
, assertpy
, buildPythonPackage
, fetchFromGitHub
, lark
, poetry-core
, pytestCheckHook
, pythonOlder
, regex
, typing-extensions
}:
buildPythonPackage rec {
pname = "pycep-parser";
version = "0.3.6";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "gruebel";
repo = "pycep";
rev = "refs/tags/${version}";
hash = "sha256-v8GJHwkY4FFmqPzEfFdvYhxj9G/H74KkhyM40K+mQ3A=";
};
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 ];
};
}