Poetry2nix | 304 Members | |
| https://github.com/nix-community/poetry2nix | Poetry2nix is unmaintained https://github.com/nix-community/poetry2nix/issues/1865 | 57 Servers | 
| Sender | Message | Time | 
|---|---|---|
| 21 Oct 2024 | ||
| 20:03:22 | ||
| 23 Oct 2024 | ||
| I'm building a python application that has bcc as a dependency which provides python bindings. What's the best way to get these bindings into my PYTHONPATH for both a package and a devshell? | 08:37:32 | |
| 09:49:14 | ||
| I'd try starting withe build expression in the nixpkgs repo and replacing buildPythonApplication with buildPythonPackage and then put that into the p2n overrides. | 10:25:52 | |
| * I'd try starting with the build expression in the nixpkgs repo and replacing buildPythonApplication with buildPythonPackage and then put that into the p2n overrides. | 10:26:07 | |
| 20:15:31 | ||
| 21:42:20 | ||
| 25 Oct 2024 | ||
| 03:55:22 | ||
| 07:17:32 | ||
| 22:42:33 | ||
| 27 Oct 2024 | ||
| 19:37:09 | ||
| 29 Oct 2024 | ||
|   Hi folks. I tried to bump python to 3.12 for a project that uses poetry2nix 
Disutils was removed from the standard library but this should still work because setuptools provides a replacement?  | 14:01:04 | |
| maybe you need to add setuptools to the buildInputs? | 14:27:56 | |
| of python-ldap | 14:28:07 | |
|   I did try something like that: 
I found that done in other parts of the code, but that didn't seem to help  | 14:31:57 | |
|   I usually put it in buildInputs not propagatedBuildInputs 
Should no longer be necessary if you poetry2nix is up to date  | 14:34:34 | |
| It's already here https://github.com/nix-community/poetry2nix/blob/2b84afaf6ff1765bcb4cdd97e53a6914feb82ebf/overrides/default.nix#L2724 | 14:35:33 | |
| I'm just working from a poetry2nix source tree :) | 14:35:39 | |
| So yes, working from what is already there | 14:35:57 | |
| 20:07:06 | ||
| 31 Oct 2024 | ||
| 19:52:24 | ||
|   I'm running into a problem that I cannot figure out, if someone has a clue, I would very much appreciate some feedback. I am getting an error when I use nix to run or build my python poetry project if the entry point module is not named main. Here is the error: 
Here is the structure of my project: 
Here is the [tool.poetry.scripts] section of my pyproject.toml 
Here is my flake.nix 
If I simply rename the cli.py module to main.py, and change the pyproject.toml to reflect the new name, everything works, and there is no error when running the executable produced by nix build, or running with nix run. The structure of my project tree when it works is simply 
Here is the [tool.poetry.scripts] section of my pyproject.toml with the associated change 
Does anyone know why I am getting the error when I try to name the module something other than main.py, how can I get everything working when I name the module cli.py?  | 19:55:59 | |
| You probably don't have the renamed module tracked by git | 19:56:34 | |
| So it's filtered out when evaluating the flake | 19:56:42 | |
| I have just double checked, and everything is being tracked. Thanks your suggestion tho. | 19:58:39 | |
| Also I love how you're in every single nix related matrix room :P thanks for trying to answer my questions | 19:59:11 | |
| When you rename the file, git does not track the rename | 19:59:18 | |
 Unless you use git mv  | 19:59:23 | |
| I have committed the changes tho, I can try with git mv to see if it makes a difference | 19:59:51 | |
| No change | 20:03:00 | |