nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 assertpy,
4 buildPythonPackage,
5 fetchFromGitHub,
6 lark,
7 poetry-core,
8 pytestCheckHook,
9 regex,
10 typing-extensions,
11}:
12
13buildPythonPackage rec {
14 pname = "pycep-parser";
15 version = "0.7.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "gruebel";
20 repo = "pycep";
21 tag = version;
22 hash = "sha256-pEFgpLfGcJhUWfs/nG1r7GfIS045cfNh7MVQokluXmM=";
23 };
24
25 nativeBuildInputs = [ poetry-core ];
26
27 propagatedBuildInputs = [
28 lark
29 regex
30 typing-extensions
31 ];
32
33 nativeCheckInputs = [
34 assertpy
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "pycep" ];
39
40 meta = {
41 description = "Python based Bicep parser";
42 homepage = "https://github.com/gruebel/pycep";
43 changelog = "https://github.com/gruebel/pycep/blob/${src.tag}/CHANGELOG.md";
44 license = with lib.licenses; [ asl20 ];
45 maintainers = with lib.maintainers; [ fab ];
46 };
47}