From c36a304f598160389ec5ef08c372c3ecda306332 Mon Sep 17 00:00:00 2001 From: LuoChen Date: Wed, 12 Nov 2025 08:54:47 +0800 Subject: [PATCH] spec-kit: init at 0.0.86 Co-authored-by: Acid Bong --- pkgs/by-name/sp/spec-kit/package.nix | 51 ++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 pkgs/by-name/sp/spec-kit/package.nix diff --git a/pkgs/by-name/sp/spec-kit/package.nix b/pkgs/by-name/sp/spec-kit/package.nix new file mode 100644 index 000000000000..320a61547ffc --- /dev/null +++ b/pkgs/by-name/sp/spec-kit/package.nix @@ -0,0 +1,51 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + nix-update-script, +}: + +python3Packages.buildPythonApplication rec { + pname = "spec-kit"; + version = "0.0.86"; + + src = fetchFromGitHub { + owner = "github"; + repo = "spec-kit"; + tag = "v${version}"; + hash = "sha256-zgiJN7rzD5x/xpL6CMvxITy+/YTu1TKk26UhhQ/s5V8="; + }; + + pyproject = true; + + build-system = with python3Packages; [ + hatchling + ]; + + dependencies = + with python3Packages; + [ + typer + rich + httpx + platformdirs + readchar + truststore + ] + ++ httpx.optional-dependencies.socks; + + pythonImportsCheck = [ + "specify_cli" + ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Bootstrap your projects for Spec-Driven Development (SDD)"; + homepage = "https://github.com/github/spec-kit"; + changelog = "https://github.com/github/spec-kit/blob/v${version}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ luochen1990 ]; + mainProgram = "specify"; + }; +}