8000 GitHub - nixidae/nixvenv: A real Python venv from nixpkgs packages, with no PYTHONPATH · GitHub
[go: up one dir, main page]

Skip to content
8000
nixidaePublic

About

A real Python venv from nixpkgs packages, with no PYTHONPATH

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

nixvenv

A real Python venv from nixpkgs packages. sys.prefix and sys.executable are the venv, a subprocess of sys.executable sees the same packages, and no PYTHONPATH is set. Every tool that asks Python where its packages are gets the same answer as the interpreter.

let
  inherit ((import ./nixvenv { inherit pkgs; }).lib) nixvenv;
in
nixvenv {
  python = pkgs.python3;
  packages = ps: [ ps.httpx ps.pytest ];
  executables = { python = null; pytest = null; };
}

nixvenv.nix documents the arguments. checks.nix holds what a venv promises, measured from inside it.

Developed in nixidae; this repository is an export of its nixvenv/ directory.

About

A real Python venv from nixpkgs packages, with no PYTHONPATH

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0