diff options
author | Jasper Ras <jras@hostnet.nl> | 2024-11-23 17:08:31 +0100 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2024-11-23 17:08:31 +0100 |
commit | c5e7a50f1dbf3b541ae5547c50d2ec5707a45ca9 (patch) | |
tree | d60c74cacfaf13f123a0946768133619d11494b0 /0 inbox/Shell.nix python.md | |
parent | 496c0c2a44ed21bbfb49f4c6e59c1a749c8b7aea (diff) |
move stuff from buffer to inbox
Diffstat (limited to '0 inbox/Shell.nix python.md')
-rw-r--r-- | 0 inbox/Shell.nix python.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/0 inbox/Shell.nix python.md b/0 inbox/Shell.nix python.md new file mode 100644 index 0000000..7dabd4d --- /dev/null +++ b/0 inbox/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 |