!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

330 Members
https://github.com/nix-community/poetry2nix62 Servers

Load older messages


SenderMessageTime
11 Jul 2022
@plato:matrix.orgplatoToo bad it's not telling me where it wants to put the symlink.12:17:12
@plato:matrix.orgplato Hmmm, both use lib/python3.10/site-packages/LICENSE. Probably should be lib/python3.10/site-packages/$PACKAGE_NAME/LICNSE? 12:17:46
@k900:0upti.meK900Very likely yes12:21:12
12 Jul 2022
@plato:matrix.orgplato
In reply to @k900:0upti.me
Very likely yes
It's fixed now, thanks!
05:38:11
@plato:matrix.orgplato Another question though: I have to add poetry to my buildInputs in the overrides for my own package. I assume I did something wrong while building the package that makes this necessary 05:38:55
@k900:0upti.meK900Does it not build if you don't do that? 05:56:07
@plato:matrix.orgplatoExactly06:06:03
@plato:matrix.orgplatoI guess poetry2nix is looking for some field in the package to then auto-include poetry into the buildInputs?06:06:31
@k900:0upti.meK900Can you post the output from a failed build? 06:19:57
@plato:matrix.orgplatoAny preferred pastebin, or can I post it here?06:36:17
@k900:0upti.meK900Just post it here06:48:41
@plato:matrix.orgplato
error: builder for '/nix/store/wwpwj67j5l6j3wznsj6daamj8lhzyrfg-python3.10-cfel-pylint-checkers-1.0.2.drv' failed with exit code 2;
       last 10 log lines:
       >   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
       >   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
       >   File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
       > ModuleNotFoundError: No module named 'poetry'
       > 
       > 
       For full logs, run 'nix log /nix/store/wwpwj67j5l6j3wznsj6daamj8lhzyrfg-python3.10-cfel-pylint-checkers-1.0.2.drv'.
error: 1 dependencies of derivation '/nix/store/7hzn25yajy5nnffjq5yjykpxzq84hwcd-python3-3.10.5-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gnpq05l5v66d3cx2vd76axr8flk1bcw9-interactive-python3-3.10.5-environment-env.drv' failed to build
06:50:55
@k900:0upti.meK900Is that your root level package?06:56:38
@k900:0upti.meK900Can you also post your pyproject.toml?06:56:45
@plato:matrix.orgplato So in my root-level package I have cfel-pylint-checkers = "1.0.2" in my [tool.poetry.dev-dependencies]. 06:59:44
@plato:matrix.orgplato Do you want to pyproject.toml for the root project or cfel-pylint-checkers? 07:00:00
@plato:matrix.orgplatoThe latter would be here: https://gitlab.desy.de/cfel-sc-public/cfel-pylint-checkers/-/blob/main/pyproject.toml07:00:20
@k900:0upti.meK900Oh07:01:16
@k900:0upti.meK900So it's a dependency07:01:24
@k900:0upti.meK900In that case you probably want to add an override07:01:31
@k900:0upti.meK900Poetry currently doesn't track build dependencies07:01:52
@k900:0upti.meK900But you can add it here: https://github.com/nix-community/poetry2nix/blob/master/overrides/build-systems.json07:01:55
@plato:matrix.orgplatoAh, so poetry2nix cannot detect a poetry dependency by itself.07:02:15
@k900:0upti.meK900 It can detect a poetry dependency, it can't detect a build system dependency 07:02:28
@k900:0upti.meK900If a package has poetry as an actual dependency, it will work07:03:08
@k900:0upti.meK900But not if it requires poetry to build, but does not specify it as a dependency07:03:24
@plato:matrix.orgplatoOkay, but having poetry as an actual dependency doesn't make too much sense here, I think.07:03:56
@plato:matrix.orgplatoWhen would that be sensible in general?07:04:03
@k900:0upti.meK900Here it doesn't07:04:03
@k900:0upti.meK900Maybe if you're building some sort of plugin or wrapper tool for poetry itself07:04:15

Show newer messages


Back to Room ListRoom Version: 6