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.oauthenticator & dependencies #34079
Conversation
#31871 (comment) needs to be fixed first. When that is done, the additional commits that are in this PR can be merged. |
@ixxie can you rebase, just so the duplicate commits are gone. |
@FRidh done! |
Please check whether tests are run. In case a package does not provide any tests, we set |
@FRidh - I double checked and as far as I can tell all these packages run tests. When distinct, I made the test dependencies explicit by stating |
Good. Note that with |
@FRidh - switched them to |
@@ -0,0 +1,31 @@ | |||
{ lib | |||
, python |
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.
Do you need python?
You already have buildPythonPackage
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.
Done.
@@ -0,0 +1,32 @@ | |||
{ lib | |||
, python |
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.
idem
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.
Done.
@@ -0,0 +1,40 @@ | |||
{ lib | |||
, python |
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.
idem
@@ -0,0 +1,26 @@ | |||
{ lib | |||
, python |
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.
Idem
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.
Done.
|
||
propagatedBuildInputs = [ jupyterhub ]; | ||
|
||
disabled = pythonOlder "3.4"; |
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 wonder if this would work
inherit (jupyterhub) disabled
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.
Didn't work unfortunately.
No tests are found. Either the test runner cannot find tests and needs to be patched, or there simply are no tests in which case the tests need to be disabled. Do include a comment explaining why the tests are disabled. This applies to each package. |
@FRidh - this is why I was baffled and asking questions about how to really check what is going on: if you remove the |
inherit pname version; | ||
sha256 = "0rlg63ii7sxj1xad2nx6wk1xgv3a8dm0az0q9g2v6hdv9cnc4b55"; | ||
}; | ||
|
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.
checkPhase = ''
py.test oauthenticator/tests
'';
# No tests in archive
doCheck = false;
The tests folder does exist on GitHub.
@FRidh - followed your suggestion with oauthenticator and reused it for globus-sdk, and then disabled testing explicitly for the other packages. |
@ixxie Good! It seems some commits that don't belong in this PR are here. |
@FRidh whoopsy! Fixed now. |
Packaged pythonPackages.oauthenticator and its dependencies, pythonPackages.mwoauth and pythonPackages.globus-sdk.
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)