Poetry2nix | 327 Members | |
| https://github.com/nix-community/poetry2nix | 62 Servers |
| Sender | Message | Time |
|---|---|---|
| 18 Jan 2024 | ||
So poetry2nix has a bunch of examples of starting fresh and just packaging your project. But I have a prexisting project that isn't mine and thus I'm fetching from GitHub. The docs mention it has the src declaration so I've put src = pkgs.fetchFromGitHub { /* stuff here */ } but it still wants to grab from the folder where the declaration lives instead of the src I've provided. | 02:21:11 | |
I could just clone the repo onto my system and tack on the .flake but I figure that isn't the right way to do things. | 02:22:19 | |
You also need to provide the paths to pyproject.toml and poetry.lock | 05:25:09 | |
| And it will be IFD | 05:25:14 | |
| Are you doing this for your personal use or for nixpkgs? | 05:25:21 | |
| University related. I ended up just writing it as a bonafided deriative due a dependecy throwing an error with poetry2nix. | 05:26:35 | |
| So far I'm...still working on that. Time is a blur now. | 05:27:14 | |
| I'm getting close to it working though so...that's something. | 05:27:46 | |
| 12:12:52 | ||
| 12:14:12 | ||
| Redacted or Malformed Event | 16:57:11 | |
| Redacted or Malformed Event | 16:57:11 | |
| Hi everyone, I'm really struggling to work out how to debug this error. If you have any tips how to approach debuging this flake I'd really appreciate it. This is the error I'm getting
I'm running this command Any tips how to apporach this would be most appreciated! I'm attaching the relevant flake files and pyproject.toml in the thread if you are more curious | 16:58:28 | |
| * Hi everyone, I'm really struggling to work out how to debug this error. If you have any tips how to approach debuging this flake I'd really appreciate it. This is the error I'm getting
I'm running this command
Any tips how to apporach this would be most appreciated! I'm attaching the relevant flake files and pyproject.toml in the thread if you are more curious | 16:58:46 | |
| Download flake.nix | 16:59:02 | |
| Download flake.lock | 16:59:04 | |
| Download poetry.lock | 16:59:33 | |
| Download pyproject.toml | 16:59:34 | |
| 21 Jan 2024 | ||
| 18:18:40 | ||
| Hi, did you solve your issues related to cuda? | 18:49:41 | |
| i get the following libnvJitLink.so.12 -> not found! but have no idea how to install libnvjitlink to libcusparse | 18:50:50 | |
| 21:39:48 | ||
| Howdy -- I have a project I'm building against Python 3.12 using poetry2nix that has Cython 3.0.8 in its pyproject.toml and poetry.lock. This almost works as-intended, except for the build of pandas, which is instead using cython 0.29.36 (the revision pinned by nixpkgs). I've added an overlay to nixpkgs in my flake ( Any guidance on where to start in trying to understand this? | 21:45:23 | |
Ah! poetry2nix/overrides/default.nix:34 -- if attr == "cython" then self.python.pythonForBuild.pkgs.cython else self.${attr} | 22:00:08 | |
...though when I look at legacyPackges.${builtins.currentSystem}.python213.pythonForBuild.pkgs.cython from my flake, I see the overridden cython, not the old one... | 22:04:11 | |
| 22 Jan 2024 | ||
| Published a reproducer for the bug at https://github.com/charles-dyfis-net/poetry2nix-cython-repro | 01:19:03 | |
Hmm. If in poetry2nixOverrides I refer to self.cython or super.cython, it's the 0.29.36 version from nixpkgs, not the 3.0.8 one from pyproject.toml or poetry.lock... | 01:47:02 | |
...whereas in the poetry2nix overrides, cython = pkgs.python312Packages.cython -- exiting the poetry2nix ecosystem and getting Cython from nixpkgs -- does appear to cause the nixpkgs overlay updating cython to be honored. Not as good as honoring the version requested in pyproject.toml, but better than not having any solution at all. | 03:37:44 | |
| Is there a poetry2nix bug report to be filed in the above (re: poetry's choice of cython versions not being honored)? | 17:23:09 | |
| ...hm. Another curious one, trying to install pandas (mind, while this is reproducible in my repo's current state, I haven't determined which aspect of that state is the trigger; if that happens, it'll become another branch in the repo above with the cython reproducer):
And indeed, that file does exist -- even outside the build sandbox, despite being inside the | 22:33:04 | |