Skip to content

Instantly share code, notes, and snippets.

@prateekrajgautam
Last active January 27, 2024 07:56
Show Gist options
  • Save prateekrajgautam/be2d1d7b9d296843538141e3a374fefb to your computer and use it in GitHub Desktop.
Save prateekrajgautam/be2d1d7b9d296843538141e3a374fefb to your computer and use it in GitHub Desktop.
nix-shell for python eel

default.nix

nix-shell for python eel

with import <nixpkgs> { };

mkShell {
    name = "pybids-dev-env";
    
    buildInputs = with python3Packages; [
        python3
        pipenv
        firefox
        vscodium
        requests
        openpyxl
        tkinter
        pytest
        # eel
        # pyautogui
        venvShellHook
    ];

    venvDir = "venv${python.version}";
    postShellHook = ''
        pip install eel
        pip install pyautogui
        pip install tkinter
        pip install tk
        #pipenv install eel pyautogui
        echo "welcome default.nix"
        python3 --version
        pip freeze
        codium .
        python3 main.py
        echo "Youtube Video: https://www.youtube.com/watch?v=jXd-hkP4xnU&t=1295s"
        echo "Blog: https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbVR5dWJEM2hXUVVXTUFhWlV0OWJmOUZqTEVWd3xBQ3Jtc0tuTHBxY1ZQWDVITTFzSlFzUWpUd3FkZTRrd1lmR0g3bnNIdGdaTG5pX2pndWZSamV1ZWJZWFZHaDM4aEY1aWVvUUtvMGExRC1fTWM4UnhKQzN2VS1LUE9Zd2l4Zm9vaWZ0NFB5Ri1lQUVHQlEtTFBVaw&q=https%3A%2F%2Fgithub.com%2FNixOS%2Fnixpkgs%2Fblob%2Fmaster%2Fdoc%2Flanguages-frameworks%2Fpython.section.md&v=jXd-hkP4xnU"
    '';

}



# {
#     py37
#     py38
#     py39
#     py310
#     py311
# }

execute with nix-shell or nix-instantiate --eval

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment