| 5 Jul 2024 |
TyberiusPrime (smilodon inopinatus) | correction, it works for some packages and does not for others ?! | 14:22:16 |
| ma27 joined the room. | 18:32:39 |
| @sliedes:hacklab.fi joined the room. | 23:02:15 |
| 8 Jul 2024 |
| axgxpxyxix joined the room. | 13:34:35 |
| 9 Jul 2024 |
FRidh | It would be great if this PR could be merged adding a cargo hash https://github.com/nix-community/poetry2nix/pull/1726 | 09:10:13 |
truh | 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 ? | 10:37:52 |
| 10 Jul 2024 |
TyberiusPrime (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 |
TyberiusPrime (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 |
TyberiusPrime (smilodon inopinatus) | and once again, my mega-PR fixes that as well. | 10:04:39 |
TyberiusPrime (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 |
TyberiusPrime (smilodon inopinatus) | (basically, by saying to not build the py.typed file) | 10:05:14 |