1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 lark,
6 pydot,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "amarna";
13 version = "0.1.5";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "crytic";
20 repo = "amarna";
21 tag = "v${version}";
22 hash = "sha256-tyvHWBhanR7YH87MDWdXUsDEzZG6MgnbshezAbxWO+I=";
23 };
24
25 propagatedBuildInputs = [
26 lark
27 pydot
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "amarna" ];
33
34 meta = with lib; {
35 description = "Static-analyzer and linter for the Cairo programming language";
36 mainProgram = "amarna";
37 homepage = "https://github.com/crytic/amarna";
38 license = licenses.agpl3Only;
39 maintainers = with maintainers; [ raitobezarius ];
40 };
41}