Skip to content
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

Merged
merged 1 commit into from Jul 2, 2018

Conversation

timokau
Copy link
Member

@timokau timokau commented Jul 1, 2018

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
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

src = fetchFromGitHub {
owner = "chrippa";
repo = "backports.shutil_get_terminal_size";
rev = "159e269450dbf37c3a837f6ea7e628d59acbb96a";
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member

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 ];
};
Copy link
Member

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.

Copy link
Member Author

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";
Copy link
Member

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";
})
Copy link
Member

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?

Copy link
Member Author

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; {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with lib;

@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.backports_shutil_get_terminal_size python3.backports_shutil_get_terminal_size

@GrahamcOfBorg
Copy link

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)

Cannot nix-instantiate `python2.backports_shutil_get_terminal_size' because:
error: attribute 'backports_shutil_get_terminal_size' in selection path 'python2.backports_shutil_get_terminal_size' not found

Cannot nix-instantiate `python3.backports_shutil_get_terminal_size' because:
error: attribute 'backports_shutil_get_terminal_size' in selection path 'python3.backports_shutil_get_terminal_size' not found

@GrahamcOfBorg
Copy link

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)

Cannot nix-instantiate `python2.backports_shutil_get_terminal_size' because:
error: attribute 'backports_shutil_get_terminal_size' in selection path 'python2.backports_shutil_get_terminal_size' not found

Cannot nix-instantiate `python3.backports_shutil_get_terminal_size' because:
error: attribute 'backports_shutil_get_terminal_size' in selection path 'python3.backports_shutil_get_terminal_size' not found

@dotlambda
Copy link
Member

@GrahamcOfBorg build python2.pkgs.backports_shutil_get_terminal_size python3.pkgs.backports_shutil_get_terminal_size

@GrahamcOfBorg
Copy link

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)

reading manifest file 'backports.shutil_get_terminal_size.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'backports.shutil_get_terminal_size.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/h9i48gy37m221wb3005j5rv0nmgg1043-python2.7-backports.shutil_get_terminal_size-unstable-2016-02-21

@GrahamcOfBorg
Copy link

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)

reading manifest file 'backports.shutil_get_terminal_size.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'backports.shutil_get_terminal_size.egg-info/SOURCES.txt'
running build_ext

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
/nix/store/ac8wm859rz605vman44rhyv6kazpci7z-python2.7-backports.shutil_get_terminal_size-unstable-2016-02-21

@dotlambda dotlambda merged commit dcc1013 into NixOS:master Jul 2, 2018
@timokau timokau deleted the backports-master branch July 2, 2018 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants