5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
31 lines
673 B
Nix
31 lines
673 B
Nix
{ lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "norminette";
|
|
version = "3.3.54";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "42School";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-r7cFaETv2gxNRhfw/F3B+7r3JzwvFvIFVSQ6MHQuEi4=";
|
|
};
|
|
|
|
nativeCheckInputs = 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 ];
|
|
};
|
|
}
|