nixpkgs-suyu/pkgs/development/tools/norminette/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
667 B
Nix
Raw Normal View History

2022-12-13 23:37:40 +01:00
{ lib
, python3Packages
, fetchFromGitHub
}:
python3Packages.buildPythonApplication rec {
pname = "norminette";
version = "3.3.51";
src = fetchFromGitHub {
owner = "42School";
repo = pname;
rev = version;
hash = "sha256-JpWziUKZPOD+AwiYeHR7e0B9l3XKNNp+XQkZEvynKGY=";
};
checkInputs = with python3Packages; [
pytestCheckHook
];
preCheck = ''
export PYTHONPATH=norminette:$PYTHONPATH
'';
meta = with lib; {
description = "Open source norminette to apply 42's norme to C files";
homepage = "https://github.com/42School/norminette";
license = licenses.mit;
maintainers = with maintainers; [ wegank ];
};
}