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