2022-12-13 23:37:40 +01:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "norminette";
|
2023-07-22 09:09:31 +02:00
|
|
|
version = "3.3.53";
|
2022-12-13 23:37:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "42School";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-07-22 09:09:31 +02:00
|
|
|
hash = "sha256-IvLy6ryu3Cwfl8XAV+Hyof6mjKDGQy17gYQFrQU5kXg=";
|
2022-12-13 23:37:40 +01:00
|
|
|
};
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2022-12-13 23:37:40 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|