mbake: 1.2.4 -> 1.3.1; install completions (#423878)

authored by Aleksana and committed by GitHub 0f4060b1 c90ffe28

+13 -3
+13 -3
pkgs/by-name/mb/mbake/package.nix
··· 1 1 { 2 + stdenv, 2 3 lib, 3 4 fetchFromGitHub, 5 + installShellFiles, 4 6 python3Packages, 5 7 versionCheckHook, 6 8 }: 7 9 8 10 python3Packages.buildPythonApplication rec { 9 11 pname = "mbake"; 10 - version = "1.2.4"; 12 + version = "1.3.1"; 11 13 pyproject = true; 12 14 13 15 src = fetchFromGitHub { 14 16 owner = "EbodShojaei"; 15 17 repo = "bake"; 16 18 tag = "v${version}"; 17 - hash = "sha256-RzM3HC3lYq93mngpqNCohcPMISWQ4+Lwa1V88S0O0To="; 19 + hash = "sha256-gQsie4/iUIe4g6ZH8bL33xW6CNxSg/sh429P4Xv0GjQ="; 18 20 }; 19 21 20 22 build-system = [ 23 + installShellFiles 21 24 python3Packages.hatchling 22 25 ]; 23 26 ··· 26 29 typer 27 30 ]; 28 31 32 + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' 33 + installShellCompletion --cmd mbake \ 34 + --bash <($out/bin/mbake completions bash) \ 35 + --fish <($out/bin/mbake completions fish) \ 36 + --zsh <($out/bin/mbake completions zsh) 37 + ''; 38 + 29 39 nativeCheckInputs = [ 30 40 python3Packages.pytestCheckHook 31 41 versionCheckHook 32 42 ]; 33 43 versionCheckProgramArg = "--version"; 34 44 35 - pythonImportsCheck = [ "bake" ]; 45 + pythonImportsCheck = [ "mbake" ]; 36 46 37 47 meta = { 38 48 description = "Makefile formatter and linter";