-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
pythonPackages.connexion #52580
pythonPackages.connexion #52580
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm seeing you've disabled tests in all of these packages because they aren't distributed from PyPI.
Usually in that case I'd recommend not fetching from PyPI and instead using the github source with fetchFromGitHub
.
Also any dependencies needed for tests should be in checkInputs
.
@worldofpeace thanks for your feedback! I've switched the packages to fetch from GitHub. In some cases the tests fail, so I've disabled them - but they can be executed now. I've also updated the wrong link and added another optional dependency for connexion. |
pkgs/development/python-modules/openapi-spec-validator/default.nix
Outdated
Show resolved
Hide resolved
@worldofpeace thanks for your helpful feedback! I really appreciate it =) |
pkgs/development/python-modules/openapi-spec-validator/default.nix
Outdated
Show resolved
Hide resolved
@worldofpeace thanks for your feedback =) |
@elohmeier I'm seeing that they're some deps that are already in I'm not sure if that was on purpose, but they should be declared as Also I think we're missing
Can you paste the logs somewhere after this round of review? |
@worldofpeace thanks again for your review! I've been able to make the package build and test successfully now for py27, py35, py36 and py37. There was a problem using the wrong locale for Python <3.7 (seems to be the same as nix-community/pypi2nix#52, took the fix from there). I've also added the missing dependecies (adding another package). |
Looks like they pinned it because the newer version broke their build spec-first/connexion#844. We could skip the aiohttp tests and hope it isn't broken because of it or we could pin the version within the expression. And you could do that like let
aiohttp_3_5_1 = aiohttp.overridePythonAttrs (oldAttrs: {
version = "3.5.1";
src = fetchPypi {
inherit (oldAttrs) pname;
inherit version;
sha256 = ...;
};
});
in |
Actually you can't override it because its dependents already have |
pkgs/development/python-modules/openapi-spec-validator/default.nix
Outdated
Show resolved
Hide resolved
Are there any updates on this pull request, please? |
5509a5c
to
6e5848b
Compare
@worldofpeace Thanks for your feedback, I've updated my changes accordingly. I've also updated to the latest package versions. |
@elohmeier, we've actually undergone an API change for python packaging since this change was authored. We have a setup hook for running pytest so wherever a package uses
|
6e5848b
to
f99c5a2
Compare
@worldofpeace Thanks for the review and info, I've switched to the new API where possible. |
Great, I'm going to build everything locally. Pretty sure we should be good to merge 👍 |
f99c5a2
to
2437eca
Compare
Thanks @elohmeier ✨ |
Motivation for this change
add the connexion library and dependencies to build nice Flask-API's with Nix
Things done
added clickclick, openapi-spec-validator, connexion
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)