python311Packages.opencv4
does not install type stubs
#292395
Labels
0.kind: bug
Something is broken
python311Packages.opencv4
does not install type stubs
#292395
Describe the bug
A clear and concise description of what the bug is.
OpenCV started including Python type stubs (.pyi files) in version 4.8.0, which allow Python LSPs to provide completion and documentation for the package. When installing via nixpkgs, these are not included in the install.
This is all on nixpkgs-unstable via a devshell flake.
Steps To Reproduce
Steps to reproduce the behavior:
python3.withPackages pypkgs: [ pypkgs.opencv4 ]
site-packages
directory; no.pyi
files installed for OpenCV.Expected behavior
Type stubs are installed.
Additional context
It appears type stub generation occurs here:
https://github.com/opencv/opencv/blob/5e5a035c5bddbd0190f6cec8e9db90363f402799/modules/python/src2/typing_stubs_generation/generation.py#L132
Notify maintainers
@basvandijk
@SomeoneSerge
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: