diff options
author | Jasper Ras <jras@hostnet.nl> | 2024-08-21 16:22:08 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2024-08-21 16:22:08 +0200 |
commit | f3711a93832df46dc245075df08b9ebfc05266e9 (patch) | |
tree | 167c4c4a9bedd6b94392b20eb6e68bc38656d456 /Buffer/Shell.nix python.md | |
parent | 26b2ee8fe95026e84bd1721910d575db72cc1b3f (diff) |
forgot to commit for a while
Diffstat (limited to 'Buffer/Shell.nix python.md')
-rw-r--r-- | Buffer/Shell.nix python.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Buffer/Shell.nix python.md b/Buffer/Shell.nix python.md new file mode 100644 index 0000000..7dabd4d --- /dev/null +++ b/Buffer/Shell.nix python.md @@ -0,0 +1,15 @@ +https://nixos.org/manual/nixpkgs/stable/#python + +```nix +{ pkgs ? import <nixpkgs> {}}: + +pkgs.mkShell { + packages = [ pkgs.virtualenv ]; +} +``` + +```nix +with import <nixpkgs> {}; +( +let my_toolz = python311.pkgs.buildPythonPackage rec { pname = "toolz"; version = "0.10.0"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-CP3V73yWSArRHBLUct4hrNMjWZlvaaUlkpm1QP66RWA="; }; nativeBuildInputs = [ python311.pkgs.setuptools python311.pkgs.wheel ]; # has no tests doCheck = false; meta = { homepage = "https://github.com/pytoolz/toolz/"; description = "List processing tools and functional utilities"; # [...] }; }; in python311.withPackages (ps: with ps; [ numpy my_toolz ]) ).env +```
\ No newline at end of file |