nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 41 lines 907 B view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5}: 6 7python3Packages.buildPythonApplication rec { 8 pname = "norminette"; 9 version = "3.3.59"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "42School"; 14 repo = "norminette"; 15 tag = version; 16 hash = "sha256-XPaMQCziL9/h+AHx6I6MIRAlzscWvOTkxUP9dMI4y0o="; 17 }; 18 19 build-system = with python3Packages; [ 20 poetry-core 21 ]; 22 23 pythonRemoveDeps = [ 24 # Can be removed once https://github.com/42school/norminette/issues/565 is addressed 25 "argparse" 26 ]; 27 28 nativeCheckInputs = with python3Packages; [ 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "norminette" ]; 33 34 meta = with lib; { 35 description = "Open source norminette to apply 42's norme to C files"; 36 mainProgram = "norminette"; 37 homepage = "https://github.com/42School/norminette"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ wegank ]; 40 }; 41}