python3Packages.opencv should also export the wrapper packages #157397
Labels
0.kind: bug
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
6.topic: python
Describe the bug
python3Packages.opencv
only exports theopencv
package.However many python packages depend on the prebuilt
opencv-python
(https://pypi.org/project/opencv-python/) oropencv-python-headless
(https://pypi.org/project/opencv-python-headless/) pip package, as they are a drop in replacement for each other.Also if opencv is built with the contrib extensions
opencv-contrib-python
(https://pypi.org/project/opencv-contrib-python/) should be exposed too.Steps To Reproduce
Steps to reproduce the behavior:
opencv-python
likemedialib
opencv
topropagatedBuildInputs
Expected behavior
Build succeeds without problems
Additional context
I've encountered this while trying to build #153255
The suggested workaround of patching the dependant packages by removing the
opencv-python
dependency would not work if we source the package from a wheel for example.It also duplicate works that should be done only in one place
Notify maintainers
@jonringer @mdaiter @basvandijk
Metadata
"x86_64-linux"
Linux 5.16.2, NixOS, 22.05 (Quokka)
yes
yes
nix-env (Nix) 2.5.1
/nix/store/8jc465d8r1mrjxb7j6wx7qc7d95frv0k-source
The text was updated successfully, but these errors were encountered: