From e1cc7ccdbe23aea8edf2b59abaac899e7211637f Mon Sep 17 00:00:00 2001 From: Robin Quintero Date: Thu, 11 Jan 2024 17:27:50 -0500 Subject: [PATCH] feat(doc): #1249 rm makepythonversion - Update docs - Remove `makePythonVersion` section Signed-off-by: Robin Quintero --- docs/src/api/extensions/python.md | 40 ------------------------------- 1 file changed, 40 deletions(-) diff --git a/docs/src/api/extensions/python.md b/docs/src/api/extensions/python.md index dd985c42..0279d08a 100644 --- a/docs/src/api/extensions/python.md +++ b/docs/src/api/extensions/python.md @@ -1,43 +1,3 @@ -## makePythonVersion - -Get a specific Python interpreter. - -Types: - -- makePythonVersion: `SupportedVersions -> Derivation` - - `SupportedVersions` = `enum ["3.9" "3.10" "3.11" "3.12"]` - Supported Python versions. - -Example: - -=== "main.nix" - - ```nix - # /path/to/my/project/makes/example/main.nix - { - makePythonVersion, - makeScript, - ... - }: - makeScript { - entrypoint = '' - python --version - ''; - name = "example"; - searchPaths = { - bin = [ (makePythonVersion "3.9") ]; - }; - } - ``` - -=== "Invocation" - - ```bash - $ m . /example - - Python 3.9 - ``` - ## makePythonEnvironment Create a Python virtual environment using