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
[RDY] pythonPackages.cmd2: 0.7.7 -> 0.8.0 #35162
Conversation
pname = "cmd2"; | ||
version = "0.8.0"; | ||
|
||
src = fetchurl { |
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.
Please use fetchPypi
instead.
|
||
meta = with stdenv.lib; { | ||
description = "Enhancements for standard library's cmd module"; | ||
homepage = http://packages.python.org/cmd2/; |
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.
404
sha256 = "1fmpn3dwc0pyhdi6q877mb8i4vw9p9a0lgmrvsaclfah62grsfjb"; | ||
}; | ||
|
||
# No tests included |
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.
On GitHub, there is a tests directory.
49cec73
to
c159ac6
Compare
I had copy/pasted from the old derivation. I updated it but still don't run the tests. They are tox based which IIRC won't work on nixos. |
Maybe, you have luck running the tests with
|
wow, I 've seen some people asking on IRC and myself trying to pull tox for it to fail. This was able to run the tests but 25 out 191 failed so I still disabled them. I might try to fix some along the way as I develop my app against cmd2 and so far it works great with 0.8 (and I use quite a few features). |
Tox just runs some command, usually |
@teto Maybe you could open an upstream issue about the failing tests. |
Some cool stuff like history saving to transcripts, support for argparse based parsers etc: https://github.com/python-cmd2/cmd2/blob/master/CHANGELOG.md It is now possible to run tests though many fails.
@GrahamcOfBorg build pythonPackages.cmd2 |
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on x86_64-darwin (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
@GrahamcOfBorg build python2.pkgs.cmd2 python3.pkgs.cmd2 |
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
@FRidh is a test that takes over an hour on aarch64 reasonable for this kind of package? |
@Mic92 should we conditionally add pbpaste on darwin and rerun the tests ? I don't have a mac so I would rather let someone do it. |
@GrahamcOfBorg build python2.pkgs.cmd2 python3.pkgs.cmd2 |
mac os sandbox was disabled. Maybe it finds pbpaste now. |
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Pandas fakes those on darwin: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/pandas/default.nix#L75 |
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
@GrahamcOfBorg build python2.pkgs.cmd2 |
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Failure on x86_64-linux (full log) Partial log (click to expand)
|
@GrahamcOfBorg build python2.pkgs.cmd2 |
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
@GrahamcOfBorg build python2.pkgs.cmd2 |
Success on x86_64-darwin (full log) Partial log (click to expand)
|
finally |
thanks for the patches ! |
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Some cool stuff like history saving to transcripts, support for argparse
based parsers etc:
https://github.com/python-cmd2/cmd2/blob/master/CHANGELOG.md
Motivation for this change
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)