mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-24 18:16:21 +03:00
50 lines
950 B
Nix
50 lines
950 B
Nix
{
|
|
lib,
|
|
assertpy,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lark,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
regex,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycep-parser";
|
|
version = "0.5.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gruebel";
|
|
repo = "pycep";
|
|
tag = version;
|
|
hash = "sha256-yCcJUN+gDeuifFoYyFsS5Ak/AYxLo0Q8edmhFYfi/eA=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|