!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
7 Jan 2025
@elikoga:matrix.orgelikogaIf you are comfortable with trying the branch of the PR, please do. I don't think that there will be automated tests for all of the ruff versions, but confirmation that the hashes provided by spacekookie work for more than one user would be great for getting it merged!16:21:21
@renato-trevisan:matrix.orgRenato Trevisan set a profile picture.21:58:44
8 Jan 2025
@silvio:booq.org@silvio:booq.org left the room.12:43:46
13 Jan 2025
@phaer:matrix.org@phaer:matrix.org left the room.13:11:41
14 Jan 2025
@nebucatnetzer13:matrix.org@nebucatnetzer13:matrix.org Does someone know of a way to build a Python environment without exposing the python binary in bin?
We have a repo for Ansible which we use in other projects as well but adding it to packages adds multiple python binaries to PATH.
14:19:16
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)make a derivation that symlinks everything you want from your {python_env}/bin to it's $out/bin?14:40:13
@nebucatnetzer13:matrix.org@nebucatnetzer13:matrix.org
In reply to @tyberius_prime:matrix.org
make a derivation that symlinks everything you want from your {python_env}/bin to it's $out/bin?
That’s a good idea, thank youπŸ‘
19:58:04
28 Jan 2025
@vsiles:matrix.org@vsiles:matrix.org joined the room.12:22:17
@vsiles:matrix.org@vsiles:matrix.org Hi ! We have developed a CLI in Python that we expose using poetry2nix successfully, using poetry2nix.mkPoetryApplication.
Now I'd like to call an external package (e.g. I want to execute curl in our CLI). Is there a way so that getting our mkPoetryApplication will also get curl ?
Someone suggested we substituteInPlace all the occurrences with ${curl}/bin/curl but that sounds very risky ^^
12:25:00
@elikoga:matrix.orgelikoga You could wrap your binary with a wrapper that sets PATH (in postinstall probably?) 12:26:42
@vsiles:matrix.org@vsiles:matrix.orgoh, clever. Let me try that12:27:44
29 Jan 2025
@perchun:matrix.org@perchun:matrix.org(it is not entirely clear but by wrapper they mean https://nixos.org/manual/nixpkgs/stable/#fun-wrapProgram)09:04:47
@vsiles:matrix.org@vsiles:matrix.orgYep, I found that. iiuc it only works for executables, not scripts, so I just used a writeShellApplication to wrap it, with runtime inputs. But that's very good to know ! Thanks you 09:17:15
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan to matthewcroughan (already in Brussels).15:43:37
@johnrizzo1:matrix.orgSeme joined the room.20:52:13
1 Feb 2025
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan (already in Brussels) to matthewcroughan (FOSDEM).09:30:34
2 Feb 2025
@tanvir:tchncs.de@tanvir:tchncs.de removed their profile picture.15:24:47
@tanvir:tchncs.de@tanvir:tchncs.de removed their display name π’•π’‚π’π’—π’Šπ’“.15:24:59
@tanvir:tchncs.de@tanvir:tchncs.de left the room.15:25:15
@vengmark2:matrix.orgl0b0Thank you for all the help!15:36:43
@vengmark2:matrix.orgl0b0 left the room.15:36:49
@pederbs:pvv.ntnu.nopbsds changed their display name from pbsds to pbsds (FOSDEM).16:04:07
@tanvir:mozilla.org@tanvir:mozilla.org removed their profile picture.16:04:33
@tanvir:mozilla.org@tanvir:mozilla.org removed their display name π’•π’‚π’π’—π’Šπ’“.16:04:44
@tanvir:mozilla.org@tanvir:mozilla.org left the room.16:04:51
3 Feb 2025
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan (FOSDEM) to matthewcroughan.09:04:22
@pederbs:pvv.ntnu.nopbsds changed their display name from pbsds (FOSDEM) to pbsds.16:25:28
5 Feb 2025
@13k:matrix.org@13k:matrix.org left the room.07:34:43
6 Feb 2025
@jeff:ocjtech.usJeff changed their profile picture.06:08:17
7 Feb 2025
@nebucatnetzer13:matrix.org@nebucatnetzer13:matrix.org

I have a strange thing happening in one of your projects, maybe someone of you has an idea what is happening.
We basically have the following configuration.
It is a project where we use Ansible and Ansible Molecule for testing.
In the dev shell everythin feels normal.
When we have a look at ansible-playbook it seems to be a binary.

Recently we created a custom Ansible module with additional dependencies.
They work fine wenn we run it directly from the within the dev shell.

But when run Molecule tests (a container based test framework) the path to ansible-playbook in the store is different and it is now a bash script.
Inside which it points to a different Python version which then doesn't have our required dependencies.

Everything gets installed through poetry2nix so I'm a bit lost why it should be different between the dev shell and molecule.

system = "x86_64-linux";
pkgs = inputs.nixpkgs.legacyPackages.${system};
poetry2nix = inputs.poetry2nix.lib.mkPoetry2Nix { inherit pkgs; };
python = pkgs.python310;
root = ./.;
pythonDevEnvironment = poetry2nix.mkPoetryEnv {
  groups = [
    "main"
    "dev"
  ];
  projectDir = root;
  inherit python;
};
07:04:14

Show newer messages


Back to Room ListRoom Version: 6