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.scikitlearn: rename to scikit-learn #123017
Conversation
Result of 2 packages built successfully:
2 suggestions:
Result of 2 packages built successfully:
1 suggestion:
|
Should we also rename its usage spots in all downstream packages within nixpkgs at the same time? |
Committed suggestion and also enabled parallel building and testing |
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.
Can you squash your commits into two commits: one for the renaming and one for enabling the tests?
0bc84ce
to
eedd37d
Compare
squashed commits and removed |
eedd37d
to
6db4f0c
Compare
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 fixed the commit messages and removed a commit involving prosody.
doCheck = !stdenv.isAarch64; | ||
# Skip test_feature_importance_regression - does web fetch | ||
checkPhase = '' | ||
cd $TMPDIR | ||
HOME=$TMPDIR OMP_NUM_THREADS=1 pytest -k "not test_feature_importance_regression" --pyargs sklearn | ||
HOME=$TMPDIR OMP_NUM_THREADS=1 pytest -n $(( $(nproc) + 1 )) -k "not test_feature_importance_regression" --pyargs sklearn |
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.
HOME=$TMPDIR OMP_NUM_THREADS=1 pytest -n $(( $(nproc) + 1 )) -k "not test_feature_importance_regression" --pyargs sklearn | |
HOME=$TMPDIR OMP_NUM_THREADS=1 pytest -n $NIX_BUILD_CORES -k "not test_feature_importance_regression" --pyargs sklearn |
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
@@ -54,17 +55,24 @@ buildPythonPackage rec { | |||
joblib | |||
threadpoolctl | |||
]; | |||
checkInputs = [ pytest ]; | |||
|
|||
checkInputs = [ pytest pytest-xdist ]; |
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.
checkInputs = [ pytest pytest-xdist ]; | |
checkInputs = [ pytestCheckHook pytest-xdist ]; |
You'll have to use disabledTests
and pytestFlagsArray
.
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
b333677
to
dcb4483
Compare
# Skip test_feature_importance_regression - does web fetch | ||
checkPhase = '' | ||
disabledTests = "test_feature_importance_regression"; |
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.
disabledTests = "test_feature_importance_regression"; | |
disabledTests = [ "test_feature_importance_regression" ]; |
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
dcb4483
to
0a1a14d
Compare
@ofborg build python38.pkgs.scikit-learn python39.pkgs.scikit-learn |
On Darwin, the tests also failed before this change, so that can be fixed another time. |
Motivation for this change
The name on pypi for this package is
scikit-learn
but it is namedscikitlearn
in nixpkgsThings done
Correct the name while staying downwards conpatible.
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)