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 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 versionCheckHook, 6 }: 7 8 python3Packages.buildPythonApplication rec { 9 pname = "mbake"; 10 - version = "1.2.4"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "EbodShojaei"; 15 repo = "bake"; 16 tag = "v${version}"; 17 - hash = "sha256-RzM3HC3lYq93mngpqNCohcPMISWQ4+Lwa1V88S0O0To="; 18 }; 19 20 build-system = [ 21 python3Packages.hatchling 22 ]; 23 ··· 26 typer 27 ]; 28 29 nativeCheckInputs = [ 30 python3Packages.pytestCheckHook 31 versionCheckHook 32 ]; 33 versionCheckProgramArg = "--version"; 34 35 - pythonImportsCheck = [ "bake" ]; 36 37 meta = { 38 description = "Makefile formatter and linter";
··· 1 { 2 + stdenv, 3 lib, 4 fetchFromGitHub, 5 + installShellFiles, 6 python3Packages, 7 versionCheckHook, 8 }: 9 10 python3Packages.buildPythonApplication rec { 11 pname = "mbake"; 12 + version = "1.3.1"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "EbodShojaei"; 17 repo = "bake"; 18 tag = "v${version}"; 19 + hash = "sha256-gQsie4/iUIe4g6ZH8bL33xW6CNxSg/sh429P4Xv0GjQ="; 20 }; 21 22 build-system = [ 23 + installShellFiles 24 python3Packages.hatchling 25 ]; 26 ··· 29 typer 30 ]; 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 + 39 nativeCheckInputs = [ 40 python3Packages.pytestCheckHook 41 versionCheckHook 42 ]; 43 versionCheckProgramArg = "--version"; 44 45 + pythonImportsCheck = [ "mbake" ]; 46 47 meta = { 48 description = "Makefile formatter and linter";