From f9d47f6c6bc984a18a883d5cb08a20d3b519602b Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Fri, 12 Aug 2022 17:30:44 +0200 Subject: [PATCH] python310Packages.amarna: init at 0.1.2 --- .../python-modules/amarna/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/amarna/default.nix diff --git a/pkgs/development/python-modules/amarna/default.nix b/pkgs/development/python-modules/amarna/default.nix new file mode 100644 index 000000000000..617afec140eb --- /dev/null +++ b/pkgs/development/python-modules/amarna/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, lark +, pydot +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "amarna"; + version = "0.1.2"; + + src = fetchFromGitHub { + owner = "crytic"; + repo = "amarna"; + rev = "v${version}"; + sha256 = "sha256-ohR6VJFIvUCMkppqdCV/kJwEmh1fP0QhfQfNu3RoMeU="; + }; + + propagatedBuildInputs = [ + lark + pydot + ]; + checkInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "amarna" ]; + + meta = with lib; { + description = "Amarna is a static-analyzer and linter for the Cairo programming language."; + homepage = "https://github.com/crytic/amarna"; + license = licenses.agpl3; + maintainers = with maintainers; [ raitobezarius ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 497940bfaa33..480dc4e0627d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -489,6 +489,8 @@ in { altair = callPackage ../development/python-modules/altair { }; + amarna = callPackage ../development/python-modules/amarna { }; + amazon-ion = callPackage ../development/python-modules/amazon-ion { }; amazon_kclpy = callPackage ../development/python-modules/amazon_kclpy { };