Skip to content

python27Packages.more-itertools: use unittestCheckHook#343822

Merged
SuperSandro2000 merged 1 commit intoNixOS:masterfrom
emilazy:push-vlklotrkrzkp
Sep 24, 2024
Merged

python27Packages.more-itertools: use unittestCheckHook#343822
SuperSandro2000 merged 1 commit intoNixOS:masterfrom
emilazy:push-vlklotrkrzkp

Conversation

@emilazy
Copy link
Member

@emilazy emilazy commented Sep 22, 2024

Description of changes

I thought that the Python 2 package set was entirely separate from the Python 3 one, but this appears to actually be using the main nose package. The actual code doesn’t use nose at all, and their tox.ini uses unittest, so let’s fix that…

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

I thought that the Python 2 package set was entirely separate from
the Python 3 one, but this appears to actually be using the main
nose package. The actual code doesn’t use nose at all, and their
`tox.ini` uses unittest, so let’s fix that…
@dotlambda
Copy link
Member

But where is this Python 2 package being used? Can't we drop it?

@emilazy
Copy link
Member Author

emilazy commented Sep 22, 2024

Hmm. It’s used by the Python 2 pytest, which is used by a bunch of other Python 2 packages. I assumed that removing it would break resholve, but surprisingly it doesn’t. Maybe it’s for GIMP plugins or something.

We can’t completely remove Python 2 before resholve is dealt with; I have a plan to get resholve off Python 2 and then remove Python 2 entirely, so I’m not as enthusiastic to remove this immediately as I otherwise might be.

@dotlambda
Copy link
Member

We can’t completely remove Python 2 before resholve is dealt with

Afaik resholve vendors its Python 2 packages. So that's only true about CPython 2.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Sep 23, 2024
@emilazy
Copy link
Member Author

emilazy commented Sep 23, 2024

Fair enough. Well, I wouldn’t shed a tear if someone wanted to remove this, but in the meantime this change is trivial and removes one of the very few remaining nose dependencies, so I think it should be okay to merge.

@SuperSandro2000
Copy link
Member

@ofborg build fahcontrol

@emilazy
Copy link
Member Author

emilazy commented Sep 23, 2024

ofborg won’t build that since it’s unfree.

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

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

NIXPKGS_ALLOW_INSECURE=1 nix build --impure -f. python27Packages.more-itertools works as expected

@SuperSandro2000 SuperSandro2000 merged commit 9b1f4b3 into NixOS:master Sep 24, 2024
@emilazy emilazy deleted the push-vlklotrkrzkp branch September 24, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants