-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
pythonPackages.stestr: init at 2.6.0 #78879
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
Conversation
2136fc1
to
55bd0ab
Compare
Python Parallel test runner. Used in qiskit tests.
55bd0ab
to
d298702
Compare
]; | ||
pythonCheckImports = [ "stestr" ]; | ||
checkPhase = '' | ||
export PATH=$out/bin:$PATH # add stestr to path |
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.
export PATH=$out/bin:$PATH # add stestr to path | |
runHook preCheck | |
export PATH=${placeholder "out"}/bin:$PATH # add stestr to path |
export HOME=$(mktemp -d) # some tests require home for tempfiles | ||
stestr init # for test_load.py | ||
pytest \ | ||
--ignore-glob='**/test_sql.py' # requires subunit2sql |
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.
--ignore-glob='**/test_sql.py' # requires subunit2sql | |
--ignore-glob='**/test_sql.py' # requires subunit2sql | |
runHook postCheck |
voluptuous | ||
]; | ||
|
||
# remove test requirements that aren't in Nix. |
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.
# remove test requirements that aren't in Nix. | |
# remove test requirements that aren't in Nix, see checkPhase. |
@@ -5929,6 +5929,10 @@ in { | |||
|
|||
python_statsd = callPackage ../development/python-modules/python_statsd { }; | |||
|
|||
stestr = callPackage ../development/python-modules/stestr { | |||
pythonSubunit = self.subunit; |
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.
What happens if you just import at the derivation's header subunit
?
@@ -0,0 +1,73 @@ | |||
{ lib | |||
, pythonOlder |
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.
Not used in any input or what so ever.
, pythonOlder |
@doronbehar I'm OK with letting this PR lapse, but thanks for your review. I'd originally thought several packages needed |
Motivation for this change
Add test dependency for qiskit #78772 @jonringer
Depends on #78876 and #78877
Things done
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)