!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

315 Members
https://github.com/nix-community/poetry2nix58 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
5 Jul 2024
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)correction, it works for some packages and does not for others ?!14:22:16
@ma27:nicht-so.sexyma27 joined the room.18:32:39
@sliedes:hacklab.fi@sliedes:hacklab.fi joined the room.23:02:15
8 Jul 2024
@axgxpxyxix:matrix.orgaxgxpxyxix joined the room.13:34:35
9 Jul 2024
@FRidh:matrix.orgFRidhIt would be great if this PR could be merged adding a cargo hash https://github.com/nix-community/poetry2nix/pull/172609:10:13
@truh:matrix.orgtruhI'm trying to investigate why opencv is no longer building (probably the same as https://github.com/nix-community/poetry2nix/issues/1715). Do the opencv packages in poetry2nix rely on the instructions from https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/opencv/4.x.nix ?10:37:52
10 Jul 2024
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)
In reply to @FRidh:matrix.org
It would be great if this PR could be merged adding a cargo hash https://github.com/nix-community/poetry2nix/pull/1726
my work in progress giant PR should fix that 'en passant'
10:02:48
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)
In reply to @truh:matrix.org
I'm trying to investigate why opencv is no longer building (probably the same as https://github.com/nix-community/poetry2nix/issues/1715).

Do the opencv packages in poetry2nix rely on the instructions from https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/opencv/4.x.nix ?
I don't think they do, reading the source.
10:04:08
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)and once again, my mega-PR fixes that as well.10:04:39
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)

by doing

 postPatch = ''
              sed -i pyproject.toml -e 's/numpy==[0-9]\+\.[0-9]\+\.[0-9]\+;/numpy;/g'
              # somehow the type information doesn't get build
              substituteInPlace setup.py --replace-fail '[ r"python/cv2/py.typed" ] if sys.version_info >= (3, 6) else []' "[]" \
              --replace-fail 'rearrange_cmake_output_data["cv2.typing"] = ["python/cv2" + r"/typing/.*\.py"]' "pass"
            '';

10:04:57
@tyberius_prime:matrix.orgTyberiusPrime (smilodon inopinatus)(basically, by saying to not build the py.typed file)10:05:14

Show newer messages


Back to Room ListRoom Version: 6