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.backports_shutil_get_terminal_size: 1.0 -> 2018-06-30 #42840
Conversation
src = fetchFromGitHub { | ||
owner = "chrippa"; | ||
repo = "backports.shutil_get_terminal_size"; | ||
rev = "159e269450dbf37c3a837f6ea7e628d59acbb96a"; |
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.
This commit is from 2016-02-21, so please use this as the version.
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 thought it was supposed to be the date of inclusion of nixpkgs. Doesn't matter either way, I'll change it.
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 not sure actually, but the date of the commit makes much more sense to me.
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 don't forget to also update the commit message.
@@ -23,4 +31,4 @@ if !(pythonOlder "3.3") then null else buildPythonPackage rec { | |||
homepage = https://github.com/chrippa/backports.shutil_get_terminal_size; | |||
license = with lib.licenses; [ mit ]; | |||
}; |
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 want to maintain this? Packages not fetched from PyPI need someone updating them by hand.
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 doubt there will be another update before the EOL of python 2.7. But sure, I'll maintain just in case.
, pytest | ||
, pythonOlder | ||
}: | ||
|
||
if !(pythonOlder "3.3") then null else buildPythonPackage rec { | ||
pname = "backports.shutil_get_terminal_size"; | ||
version = "1.0.0"; | ||
version = "2018-06-30"; |
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.
unstable-{date}
name = "zero_division_error_formatting.patch"; | ||
url = "https://git.sagemath.org/sage.git/patch/?h=f79070ddd09fa0ad6b340b097bd8d690a7aa35f0"; | ||
sha256 = "02wsc3wbp8g8dk5jcjyv18d9v537h3zp5v8lwir46j4na4kj0dlb"; | ||
}) |
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.
This probably has nothing to do with the Python package, has it?
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.
It removes the sage patch that was applied to deal with an unpatched version of the backport.
}; | ||
|
||
checkInputs = [ | ||
pytest | ||
]; | ||
|
||
meta = { | ||
meta = with stdenv.lib; { |
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.
with lib;
@GrahamcOfBorg build python2.backports_shutil_get_terminal_size python3.backports_shutil_get_terminal_size |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: python2.backports_shutil_get_terminal_size, python3.backports_shutil_get_terminal_size Partial log (click to expand)
|
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: python2.backports_shutil_get_terminal_size, python3.backports_shutil_get_terminal_size Partial log (click to expand)
|
@GrahamcOfBorg build python2.pkgs.backports_shutil_get_terminal_size python3.pkgs.backports_shutil_get_terminal_size |
Success on x86_64-linux (full log) Attempted: python2.pkgs.backports_shutil_get_terminal_size The following builds were skipped because they don't evaluate on x86_64-linux: python3.pkgs.backports_shutil_get_terminal_size Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: python2.pkgs.backports_shutil_get_terminal_size The following builds were skipped because they don't evaluate on aarch64-linux: python3.pkgs.backports_shutil_get_terminal_size Partial log (click to expand)
|
Motivation for this change
@FRidh do you think it is acceptable to build from master, given that the released version seems pretty broken and there hasn't been any change in years?
There is a discussion here but it is rather lengthy.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)