Poetry2nix | 316 Members | |
| https://github.com/nix-community/poetry2nix | 61 Servers |
| Sender | Message | Time |
|---|---|---|
| 19 May 2022 | ||
| mypy? | 19:54:40 | |
| Assuming flake8-annotations does what I think it does | 19:54:52 | |
| hm yeah that probably would work | 20:11:06 | |
Well with that sorted, I have another question. I want to set my flake's devShell to a mkPoetryEnv.env derivation, but I want to include poetry itself in the environment. Is there an easy way to do that? I tried adding poetry to extraPackages, but it confliced with poetry-core from somewhere else | 20:13:17 | |
* Well with that sorted, I have another question. I want to set my flake's devShell to a mkPoetryEnv.env derivation, but I want to include poetry itself in the environment (the PATH, that is). Is there an easy way to do that? I tried adding poetry to extraPackages, but it confliced with poetry-core from somewhere else | 20:13:49 | |
| It should already be there IIRC? | 20:14:37 | |
| Like by default | 20:14:43 | |
| uhm, Unless I messed something up... let me try again | 20:14:56 | |
| sorry got sidetracked.. yep definitely missing poetry | 20:38:20 | |
| I'll set up an example in that repo | 20:39:26 | |
| Oh it's probably my global poetry | 20:39:41 | |
| Which I have globally | 20:39:44 | |
| ok well here's an example of what I tried + the error https://github.com/m1cr0man/p2n-test/blob/main/dev-shell/build-log-python-env.log | 20:52:50 | |
| I figured there might be a way to combine envs in the greater nixpkgs lib or something | 20:53:15 | |
| that way I could just merge this with a devShell with poetry | 20:53:23 | |
| You can just overrideAttrs({ nativeBuildInputs = [poetry] }) | 20:53:51 | |
| That should work | 20:53:54 | |
| Yep! :D
| 20:56:02 | |
| ok class, thanks for your help | 20:56:18 | |
| I tried getting flake8-annotations to build but couldn't figure out why it's trying to load some non-existent test case: https://github.com/m1cr0man/p2n-test/blob/main/flake8-annotations/override-build-log-flake8-annotations.log and I'm working tomorrow, so gotta leave it for tonight :P | 22:49:17 | |
| 20 May 2022 | ||
| 20:42:28 | ||
| 21 May 2022 | ||
| 13:24:35 | ||
| Redacted or Malformed Event | 13:27:36 | |
| Hi, I'm trying to package a project that has
Looking around, I realise I need to somehow pass in the build system as a build input, but I'm having a hard time finding the right incantation (the obvious thing of 'like poetry but flit-scm' didn't work)
(https://github.com/reivilibreOrg/wombat000/blob/master/flake.nix#L35-L39) I have a minimal example here: https://github.com/reivilibreOrg/wombat000 I appreciate this is likely to be a stupid mistake, but any thoughts on what I'm missing? | 13:32:06 | |
| * Hi, I'm trying to package a project that has
Looking around, I realise I need to somehow pass in the build system as a build input, but I'm having a hard time finding the right incantation (the obvious thing of 'like poetry but flit-scm' didn't work)
(https://github.com/reivilibreOrg/wombat000/blob/master/flake.nix#L35-L39) I have a minimal example here: https://github.com/reivilibreOrg/wombat000 I appreciate this is likely to be a stupid mistake, but any thoughts on what I'm missing? | 13:36:42 | |
I think the problem might be that flit_scm isn't packaged in Nix; in that case, do I need to package it myself...? :o | 13:41:10 | |
That seems a little daunting and flit_scm is a flit project, not a poetry project, so I guess poetry2nix wouldn't be much use for packaging it | 13:43:18 | |
Another question I have is: can I prevent poetry2nix building dev-dependencies? One of them is mypy and it takes aaaages to build, when the final result doesn't even use it. | 14:48:47 | |
In reply to @reivilibre:librepush.netI found setting doCheck = false in mkPoetryApplication did the trick :) | 23:45:07 | |
| 22 May 2022 | ||
In reply to @m1cr0man:m1cr0man.comThank you very much! | 09:20:23 | |