Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.openapi-spec-validator: add setuptools #80129

Merged
merged 1 commit into from Feb 14, 2020

Conversation

@disassembler
Copy link
Member

disassembler commented Feb 14, 2020

Motivation for this change

Fails to run:

openapi-spec-validator --help
Traceback (most recent call last):
  File "/nix/store/1kqp8dslskvhzj60y4h13hf3ys5ha11p-python3.7-openapi-spec-validator-0.2.8/bin/.openapi-spec-validator-wrapped", line 6, in <module>
    from openapi_spec_validator.__main__ import main
  File "/nix/store/1kqp8dslskvhzj60y4h13hf3ys5ha11p-python3.7-openapi-spec-validator-0.2.8/lib/python3.7/site-packages/openapi_spec_validator/__init__.py", line 6, in <module>
    from openapi_spec_validator.schemas import get_openapi_schema
  File "/nix/store/1kqp8dslskvhzj60y4h13hf3ys5ha11p-python3.7-openapi-spec-validator-0.2.8/lib/python3.7/site-packages/openapi_spec_validator/schemas.py", line 4, in <module>
    from pkg_resources import resource_filename
ModuleNotFoundError: No module named 'pkg_resources'
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Copy link
Member

worldofpeace left a comment

The help menu worked for me.

@worldofpeace worldofpeace merged commit 62a7f80 into NixOS:master Feb 14, 2020
@worldofpeace

This comment has been minimized.

Copy link
Member

worldofpeace commented Feb 14, 2020

20.03 63772f7

@worldofpeace

This comment has been minimized.

Copy link
Member

worldofpeace commented Feb 14, 2020

19.09 492d1a2

dtzWill added a commit to dtzWill/nixpkgs that referenced this pull request Feb 14, 2020
python3Packages.openapi-spec-validator: add setuptools

(cherry picked from commit 62a7f80)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.