!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

329 Members
https://github.com/nix-community/poetry2nix61 Servers

Load older messages


SenderMessageTime
22 Feb 2022
@x10an14:matrix.orgx10an14
In reply to @x10an14:matrix.org
That fixed my issue with prospector, thanks mou! =D Now I gotta figure out how to fix the next error...
https://paste.sr.ht/~x10an14/8b83382fa0c3a0352ed79f9757b7ae7ff7249263 <-- A python egg a different dependency tries to create. I'ma be busy searching the poetry2nix repo's issues =P
16:57:40
@mou_bugtracker:matrix.orgmou
In reply to @x10an14:matrix.org
https://paste.sr.ht/~x10an14/8b83382fa0c3a0352ed79f9757b7ae7ff7249263 <-- A python egg a different dependency tries to create. I'ma be busy searching the poetry2nix repo's issues =P
my guess: fiass-logging needs pytest-runner, but does not specify so, or trying to download it during build (which is prohibited)
17:00:42
@mou_bugtracker:matrix.orgmou
In reply to @x10an14:matrix.org
https://paste.sr.ht/~x10an14/8b83382fa0c3a0352ed79f9757b7ae7ff7249263 <-- A python egg a different dependency tries to create. I'ma be busy searching the poetry2nix repo's issues =P
* my guess: fiass-logging needs pytest-runner, but does not specify so, or trying to download it during build (but this is prohibited)
17:00:59
@x10an14:matrix.orgx10an14
In reply to @mou_bugtracker:matrix.org
my guess: fiass-logging needs pytest-runner, but does not specify so, or trying to download it during build (but this is prohibited)
Good guess, I think you're onto something there. I'ma try some more, but it's defniitely in need of pytest-runner.
17:05:44
@mou_bugtracker:matrix.orgmouhttps://github.com/fiaas/logging/blob/cd8791332c932ed8a69b82e80986022b0d21af75/setup.py#L6917:08:41
@mou_bugtracker:matrix.orgmoupoetry2nix has no way to extract such metadata from python code (17:13:45
3 Mar 2022
@jairo:recallstack.icuJairo Llopis

Hello, while building a derivation with poetry2nix, I get this error:

error: unsupported build system requirement poetry-dynamic-versioning

I guess it comes from this part of the pyproject.toml file:

[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api"

Any clues on how to fix that problem?

12:32:37
@jairo:recallstack.icuJairo Llopis *

Hello, on nix build of a flake with poetry2nix, I get this error:

error: unsupported build system requirement poetry-dynamic-versioning

I guess it comes from this part of the pyproject.toml file:

[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry.core.masonry.api"

Any clues on how to fix that problem?

12:33:05
@jamie-howlie:monero.socialjamie-howlie joined the room.13:24:39
@dooygoy:matrix.orgdooygoy joined the room.13:25:47
@jamie-howlie:monero.socialjamie-howlieHi all, I'm trying to get my project going with poetry2nix for the first time. I'm not managing to get my shell working. I get an error "Missing suitable source/wheel file for entry" It comes from a library of our company, which is hosted in our private pypi server.13:27:29
@jamie-howlie:monero.socialjamie-howlieI have added our pypi server to the pyproject.toml, and if using it outsinde of nix I do manage to add the library to my virtual environment13:28:18
4 Mar 2022
@jmgilman:matrix.orgJoshua Gilman joined the room.18:01:52
@jmgilman:matrix.orgJoshua GilmanAnyone available to help troubleshoot failing build?18:04:09
@jmgilman:matrix.orgJoshua Gilman * Anyone available to help troubleshoot a failing build?18:04:22
5 Mar 2022
@dooygoy:matrix.orgdooygoy left the room.13:56:07
6 Mar 2022
@artturin:matrix.orgArtturin
In reply to @jmgilman:matrix.org
Anyone available to help troubleshoot a failing build?
You should post the error instead of asking if anyone is available to help you
09:05:20
8 Mar 2022
@finn:tomesh.netfinn joined the room.16:16:26
@k900:0upti.meK900 changed their profile picture.18:32:14
@finn:tomesh.netfinn left the room.16:17:40
@charmonium:matrix.orgcharmonium joined the room.23:43:02
@charmonium:matrix.orgcharmonium Any idea why poetry2nix fails to install benchexec? Benchexec's setup.cfg specifies lxml, which pip tries to download, but can't. How do I make an overlay to use the "right" lxml? 23:51:08
9 Mar 2022
@tompurl:destrocodpiece.wtfTom Purl (he/him) joined the room.04:23:32
@tompurl:destrocodpiece.wtfTom Purl (he/him) Hello! I went through the tutorial on Youtube for packaging a Flask app. I would love to do the same thing with a Django app but I assume that I would need to figure out how to start my app from the tool.poetry.scripts command in pyproject.toml. However, I can't find any resource on how exactly to do that. Currently I run python manage.py runserver. How can I specify that command from poetry? 04:43:41
@flokli:matrix.orgflokli joined the room.12:40:05
@vengmark2:matrix.orgl0b0 joined the room.22:05:15
@vengmark2:matrix.orgl0b0 How should I expose the Poetry executable itself when using mkPoetryEnv? I need to be able to run things like poetry add while in the Nix shell. Using mkShell with buildInputs = [ pkgs.poetry ]; seems wrong. 22:07:17
@vengmark2:matrix.orgl0b0 * How should I expose the Poetry executable itself when using mkPoetryEnv? I need to be able to run things like poetry add while in the Nix shell. Using mkShell with buildInputs = [ pkgs.poetry ]; seems wrong. And using extraPackages = ps: [ ps.poetry ]; fails with a collision message. 22:10:01
10 Mar 2022
@mou_bugtracker:matrix.orgmou
In reply to @vengmark2:matrix.org
How should I expose the Poetry executable itself when using mkPoetryEnv? I need to be able to run things like poetry add while in the Nix shell. Using mkShell with buildInputs = [ pkgs.poetry ]; seems wrong. And using extraPackages = ps: [ ps.poetry ]; fails with a collision message.

i use this approach (snippet taken from flake.nix)

        devShell = (pkgs.poetry2nix.mkPoetryEnv {
          projectDir = ./.;
          editablePackageSources = {
            whateverpackagenames = ./.;
          };
        }).env.overrideAttrs (oldAttrs: {
          buildInputs = [ pkgs.poetry ];
        });

05:43:44
@mou_bugtracker:matrix.orgmou
In reply to @tompurl:destrocodpiece.wtf
Hello! I went through the tutorial on Youtube for packaging a Flask app. I would love to do the same thing with a Django app but I assume that I would need to figure out how to start my app from the tool.poetry.scripts command in pyproject.toml. However, I can't find any resource on how exactly to do that. Currently I run python manage.py runserver. How can I specify that command from poetry?
Sorry for late reply, but this question is about poetry itself, not about it integration with nix nor the poetry2nix. So i'm afraid you should try to search answer in diffrerent community. At least i'm not aware about soulution.
14:56:47

Show newer messages


Back to Room ListRoom Version: 6