!VjfUzaKsXokUdnQcvP:nixos.org

Nix Python

74 Members
Anything regarding using Python with Nix.24 Servers

Load older messages


SenderMessageTime
17 Oct 2021
@kamadorueda:matrix.orgkamadoruedahttps://github.com/nix-community/poetry2nix/pull/393/files18:16:03
@raitobezarius:matrix.orgraitobezariusha18:16:13
@raitobezarius:matrix.orgraitobezariushere's the fix18:16:16
@kamadorueda:matrix.orgkamadoruedaxD18:16:23
@raitobezarius:matrix.orgraitobezarius25 days ago, this mean with probability 1, it's not in nixos-unstable18:16:38
@raitobezarius:matrix.orgraitobezariushm it is18:17:36
@kamadorueda:matrix.orgkamadoruedaI recommend you to import it not from nixpkgs but from their source repository, so you can control which commit to use instead of waiting for nixpkgs to update it, and then you to update nixpkgs18:17:40
@raitobezarius:matrix.orgraitobezariusyeah good idea18:17:48
@kamadorueda:matrix.orgkamadoruedaare you using nix stable?18:18:07
@raitobezarius:matrix.orgraitobezariusI was planning to pin 21.05 for this project as it looked like almost everything was in it18:18:22
@kamadorueda:matrix.orgkamadoruedathis can help: https://github.com/nmattia/niv18:18:31
@raitobezarius:matrix.orgraitobezarius I'm using flakes, so no need for niv atm 18:18:42
@kamadorueda:matrix.orgkamadoruedaah ok, even better18:18:55
@kamadorueda:matrix.orgkamadorueda

btw, I've been working on a website so people can just copy-paste the example and get things done:

  • https://kamadorueda.github.io/python-on-nix
  • https://kamadorueda.github.io/python-on-nix/projects/numpy/
19:00:01
@raitobezarius:matrix.orgraitobezarius

nix-repl> :p (pep425.selectWheel plock.metadata.files.scipy)
[ { file = "scipy-1.6.1-cp38-cp38-manylinux1_x86_64.whl"; hash = "sha256:0e5b0ccf63155d90da576edd2768b66fb276446c371b73841e3503be1d63fb5d"; } ]

nix-repl> :p (pep425.selectWheel plock.metadata.files.numpy) 
[ { file = "numpy-1.21.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl"; hash = "sha256:91c6f5fc58df1e0a3cc0c3a717bb3308ff850abdaa6d2d802573ee2b11f674a8"; } ]

nix-repl> :p (pep425.selectWheel plock.metadata.files.pandas)
[ { file = "pandas-1.3.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl"; hash = "sha256:49fd2889d8116d7acef0709e4c82b8560a8b22b0f77471391d12c27596e90267"; } ]
19:01:07
@raitobezarius:matrix.orgraitobezariusjoy19:01:08
@kamadorueda:matrix.orgkamadoruedacool!19:01:34
@raitobezarius:matrix.orgraitobezarius even though:
error: assertion '(drv).passthru.python.pkgs.numpy.src.isWheel or (false)' failed :D
19:02:03
@raitobezarius:matrix.orgraitobezariusso it seems like now a wheel is selected, but is not used19:02:13
@raitobezarius:matrix.orgraitobezarius nice stuff kamadorueda @ python on nix 19:04:02
@raitobezarius:matrix.orgraitobezariusbut it looks like it's for "native Nix" environment, not hybrid/existing environment using Poetry & al, right?19:04:24
@kamadorueda:matrix.orgkamadoruedawhat would you like to achieve? managing a few deps with poetry2nix and a few others with python-on-nix?19:08:24
@raitobezarius:matrix.orgraitobezariusmanaging all dependencies with minimal amount of tools and hassle when updating the poetry.lock :p19:46:39
@raitobezarius:matrix.orgraitobezariusok got it20:03:46
@raitobezarius:matrix.orgraitobezariusremember, overlays gets applied from the last to the first :-]20:03:56
20 Oct 2021
@junjihashimoto:matrix.orgjunji hashimoto joined the room.05:13:24
@lourkeur:nixos.devlourkeur (Nix OwO) set a profile picture.09:11:18
@lourkeur:nixos.devlourkeur (Nix OwO) changed their display name from Louis Bettens to lourkeur (Nix OwO).11:19:30
@lourkeur:nixos.devlourkeur (Nix OwO) changed their profile picture.13:05:41
@lourkeur:nixos.devlourkeur (Nix OwO) changed their profile picture.13:09:23

There are no newer messages yet.


Back to Room List