!VjfUzaKsXokUdnQcvP:nixos.org

Nixpkgs Python

426 Members
Anything regarding using Python with Nix.104 Servers

Load older messages


SenderMessageTime
17 Oct 2024
@hexa:lossy.networkhexa and now the proposal is to just ship protobuf 15:47:28
@hexa:lossy.networkhexa * we had buildPackages.protobuf before 15:47:34
@hexa:lossy.networkhexamake the call ๐Ÿ™‚ 15:47:51
@hexa:lossy.networkhexawe need the protoc executable available for consumers15:48:07
@artturin:matrix.orgArtturin

https://github.com/NixOS/nixpkgs/blob/b88b49c98470a3daf7c09d200777e1c1a1bc2494/pkgs/top-level/python-packages.nix#L10715

https://github.com/NixOS/nixpkgs/blob/b88b49c98470a3daf7c09d200777e1c1a1bc2494/pkgs/top-level/python-packages.nix#L10720

Change these to pkgs.__splicedPackages.X and it'll work

15:50:04
@artturin:matrix.orgArtturin *

https://github.com/NixOS/nixpkgs/blob/b88b49c98470a3daf7c09d200777e1c1a1bc2494/pkgs/top-level/python-packages.nix#L10715

https://github.com/NixOS/nixpkgs/blob/b88b49c98470a3daf7c09d200777e1c1a1bc2494/pkgs/top-level/python-packages.nix#L10720

Change these to pkgs.__splicedPackages.X and it'll work without buildPackages.

15:50:15
@hexa:lossy.networkhexawhat the fresh hell is __splicedPackages now ๐Ÿ˜„ 15:50:52
@artturin:matrix.orgArtturin If we want to do it automagically we can pass pkgs = pkgs.__splicedPackages here https://github.com/NixOS/nixpkgs/blob/b88b49c98470a3daf7c09d200777e1c1a1bc2494/pkgs/development/interpreters/python/passthrufun.nix#L39 15:51:06
@artturin:matrix.orgArtturin
In reply to @hexa:lossy.network
what the fresh hell is __splicedPackages now ๐Ÿ˜„
It's just contains the packages with __spliced
15:51:27
@hexa:lossy.networkhexaby all means, lets make it more magical15:51:30
@artturin:matrix.orgArtturin pkgs isn't __splicedPackages
callPackage gets from __splicedPackages https://github.com/NixOS/nixpkgs/blob/b88b49c98470a3daf7c09d200777e1c1a1bc2494/pkgs/top-level/splice.nix#L140-L144
15:52:18
@emilazy:matrix.orgemily maybe just buildPackages is better 15:52:36
@hexa:lossy.networkhexa
In reply to @artturin:matrix.org
If we want to do it automagically we can pass pkgs = pkgs.__splicedPackages here https://github.com/NixOS/nixpkgs/blob/b88b49c98470a3daf7c09d200777e1c1a1bc2494/pkgs/development/interpreters/python/passthrufun.nix#L39
why not this?
15:53:02
@emilazy:matrix.orgemilyi understand one of them ๐Ÿคช15:53:29
@emilazy:matrix.orgemilywell. i've deluded myself into believing i understand one of them15:53:40
@hexa:lossy.networkhexaUnderstanding cross is probably easy if someone who understands it sits down with you15:54:19
@emilazy:matrix.orgemilyI think I understand cross okay, but I definitely don't understand splicing.15:55:08
@artturin:matrix.orgArtturinIt's not that bad, the bad part is getting it to work everywhere15:56:07
@artturin:matrix.orgArtturinwith overrides and such15:56:21
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/34931616:13:52
@hexa:lossy.networkhexathe big hammer16:15:23
@artturin:matrix.orgArtturin
In reply to @artturin:matrix.org
If we want to do it automagically we can pass pkgs = pkgs.__splicedPackages here https://github.com/NixOS/nixpkgs/blob/b88b49c98470a3daf7c09d200777e1c1a1bc2494/pkgs/development/interpreters/python/passthrufun.nix#L39
Oh yeah this is what I've done in perl https://github.com/NixOS/nixpkgs/blob/d2bd9a39dec88eddd5c192abee69939e67f43d12/pkgs/development/interpreters/perl/default.nix#L25
16:17:56
@pyrox:pyrox.devdish [Fox/It/She]Submitted the pytest-cov PR16:40:49
@pyrox:pyrox.devdish [Fox/It/She]https://github.com/nixos/nixpkgs/pull/34932416:41:00
@pyrox:pyrox.devdish [Fox/It/She]* Submitted the pytest-cov PR, it's targeting staging because of the number of rebuilds16:41:16
@pyrox:pyrox.devdish [Fox/It/She] gonna do the same for codecov-python and actually drop that as well as it's archived. 16:43:03
@kjeremy:matrix.orgkjeremy It looks like lcov-cobertura is missing distutils at runtime 17:29:39
@bendlas:matrix.orgbendlas changed their profile picture.17:37:52
@kjeremy:matrix.orgkjeremyI don't really know python but this seems to fix it: https://github.com/NixOS/nixpkgs/pull/34933317:57:57
@glepage:matrix.orgGaรฉtan Lepage
In reply to @k900:0upti.me
As long as you merge it reasonably quickly
Could someone have a quick look maybe ? So that we can merge it soon.
https://github.com/NixOS/nixpkgs/pull/349270
19:48:23

Show newer messages


Back to Room ListRoom Version: 6