nixpkgs-suyu/pkgs/development/python-modules/amarna/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

43 lines
795 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, lark
, pydot
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "amarna";
version = "0.1.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "crytic";
repo = "amarna";
rev = "refs/tags/v${version}";
hash = "sha256-tyvHWBhanR7YH87MDWdXUsDEzZG6MgnbshezAbxWO+I=";
};
propagatedBuildInputs = [
lark
pydot
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"amarna"
];
meta = with lib; {
description = "Static-analyzer and linter for the Cairo programming language";
homepage = "https://github.com/crytic/amarna";
license = licenses.agpl3Only;
maintainers = with maintainers; [ raitobezarius ];
};
}