Poetry2nix | 322 Members | |
| https://github.com/nix-community/poetry2nix | 62 Servers |
| Sender | Message | Time |
|---|---|---|
| 9 Apr 2024 | ||
| 23:22:59 | ||
| 10 Apr 2024 | ||
| hmm, if i do that, i get something about "attribute lib missing" in some anonymous derivation | 08:51:01 | |
In reply to @j0xxx:nixbitcoin.org Last time I had this it was because I tried to access Can you share the flake? | 08:57:42 | |
| nvm that was my issue, i passed the wrong think into mkPoetry2Nix. The follows thing didn't help though in this case | 08:58:20 | |
| the problem seems to happen with the python package adafruit-circuitpython-dht, in case anyone feels like taking a look | 08:59:04 | |
| switching from mkPoetryEnv to mkPoetryApplication for some reason shows me a more readable trace, and i can see it go down the dependencies until we hit adafruit-circuitpython-typing which is the actual package causing the issue | 21:00:16 | |
| looks like a circular dependency with Adafruit-Blinka | 21:02:03 | |
| so can i use an override to remove one of the dependencies? | 21:03:56 | |
| Seems to be working with a lot of overrides needed. Will try to create a ticket tomorrow just to have it documented | 23:45:05 | |
| 11 Apr 2024 | ||
In reply to @j0xxx:nixbitcoin.orgOverriding buildInputs should work I think. | 08:09:16 | |
| Ok, so it works now. Question is: Does it make sense to open a ticket like "i found these packages that need overrides"? Basically there were some dependency loops and a bunch of packages needing "setuptools" added. | 10:24:53 | |
In reply to @j0xxx:nixbitcoin.orgIf you already have the overrides, it would be great if you could add them to the existing ones. But filing an issue also works if you don't have time. | 22:50:45 | |
| 12 Apr 2024 | ||
| 09:47:11 | ||
| 15 Apr 2024 | ||
| I'm working on a script to fix the overrides for some common problems. I created a recent PR for fixing a package called twisted. Three questions: 1) Would that be useful? So far I have identified thousands of commonly downloaded packages failing. 2) is the use of from and until in the build systems json preferred to list of dependencies? 3) I see some checks failing, unrelated to the package I'm fixing. Should I fix those? | 17:22:53 | |
In reply to @rolandco:matrix.org
| 20:53:48 | |
| Thanks, I'll be working on it | 22:13:32 | |
| 16 Apr 2024 | ||
| 02:19:03 | ||
| Are there any examples of mkPoetryScriptsPackage I could use because I'm trying to set up a single python script and installing it via a flake but I haven't figured that out yet haha | 02:23:46 | |
In reply to @nirudium:matrix.orgIf your script has any dependencies I would use mkPoetryApplication instead. | 09:20:30 | |
| I see, how would I have the result end up in the path? | 09:21:10 | |
In my projects using mkPoetryApplication, there are scripts in result/bin for each of the scripts defined in pyproject.toml [tool.poetry.scripts] | 09:22:28 | |
| 17 Apr 2024 | ||
| 17:16:44 | ||
| 17:21:55 | ||
| 17:21:55 | ||
How to fix an "unknown location" import error from cryptography.hazmat.bindings._rust.x509? | 22:15:23 | |
* How to fix an "unknown location" import error from cryptography.hazmat.bindings._rust.x509? Looks like it might be related to poetryPackages = poetry2nix.mkPoetryPackages {python = pkgs.python310; …}; poetryPackages.python.withPackages (ps: poetryPackages.poetryPackages) ending up with a cryptography library linked to Python 3.11. | 22:18:54 | |
Crap, looks like pkgs.awscli2 is overriding something. How can I avoid that? | 22:30:53 | |
| Filed issue. | 22:43:21 | |
| 18 Apr 2024 | ||
| 02:25:46 | ||
| 19 Apr 2024 | ||
| How could I use pypy with a poetry2nix flake? | 23:32:38 | |