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