Name: python-pyright Version: 1.1.414 Release: %autorelease Summary: Command line wrapper for pyright License: MIT URL: https://github.com/RobertCraigie/pyright-python Source: %{pypi_source pyright} BuildSystem: pyproject BuildOption(install): --assert-license pyright # nodejs-wheel-binaries is not packaged in Fedora; exclude nodejs and all extras BuildArch: noarch BuildRequires: %{py3_dist pytest} BuildRequires: nodejs %global _description %{expand: Pyright for Python is a Python command-line wrapper over pyright, a static type checker for Python.} %description %_description %package -n python3-pyright Summary: %{summary} # Uses global node binary to run the bundled pyright JS files Requires: nodejs # Bundled Microsoft pyright npm package (compiled JS in src/pyright/dist/) Provides: bundled(npm(pyright)) = 1.1.414 # Bundled typeshed type stubs snapshot Provides: bundled(python-typeshed) = 0^git289e5d3 # Third-party npm libraries bundled into vendor.js via webpack/rspack Provides: bundled(npm(@yarnpkg/fslib)) = 2.10.4 Provides: bundled(npm(@yarnpkg/libzip)) = 2.3.0 Provides: bundled(npm(ansi-styles)) = 4.3.0 Provides: bundled(npm(anymatch)) = 3.1.3 Provides: bundled(npm(binary-extensions)) = 2.3.0 Provides: bundled(npm(braces)) = 3.0.3 Provides: bundled(npm(buffer-from)) = 1.1.2 Provides: bundled(npm(chalk)) = 4.1.2 Provides: bundled(npm(chokidar)) = 3.6.0 Provides: bundled(npm(color-convert)) = 2.0.1 Provides: bundled(npm(color-name)) = 1.1.4 Provides: bundled(npm(command-line-args)) = 5.2.1 Provides: bundled(npm(fill-range)) = 7.1.1 Provides: bundled(npm(glob-parent)) = 5.1.2 Provides: bundled(npm(has-flag)) = 4.0.0 Provides: bundled(npm(is-binary-path)) = 2.1.0 Provides: bundled(npm(is-extglob)) = 2.1.1 Provides: bundled(npm(is-glob)) = 4.0.3 Provides: bundled(npm(is-number)) = 7.0.0 Provides: bundled(npm(jsonc-parser)) = 3.3.1 Provides: bundled(npm(lodash.camelcase)) = 4.3.0 Provides: bundled(npm(normalize-path)) = 3.0.0 Provides: bundled(npm(picomatch)) = 2.3.2 Provides: bundled(npm(readdirp)) = 3.6.0 Provides: bundled(npm(smol-toml)) = 1.7.0 Provides: bundled(npm(source-map)) = 0.6.1 Provides: bundled(npm(source-map-support)) = 0.5.21 Provides: bundled(npm(supports-color)) = 7.2.0 Provides: bundled(npm(tmp)) = 0.2.7 Provides: bundled(npm(to-regex-range)) = 5.0.1 Provides: bundled(npm(tslib)) = 1.14.1 Provides: bundled(npm(vscode-jsonrpc)) = 9.0.1 Provides: bundled(npm(vscode-languageserver)) = 10.1.0 Provides: bundled(npm(vscode-languageserver-protocol)) = 3.18.2 Provides: bundled(npm(vscode-languageserver-textdocument)) = 1.0.12 Provides: bundled(npm(vscode-languageserver-types)) = 3.18.0 Provides: bundled(npm(vscode-uri)) = 3.1.0 %description -n python3-pyright %_description %check -a # test_main.py imports tests.utils which is absent from the sdist # test_node.py needs a conftest.py with a 'node' fixture, also absent from the sdist %pytest tests/ --ignore=tests/test_main.py --ignore=tests/test_node.py %files -n python3-pyright -f %{pyproject_files} %{_bindir}/pyright %{_bindir}/pyright-langserver %{_bindir}/pyright-python %{_bindir}/pyright-python-langserver %changelog %autochangelog