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

Remove applications that depend on python2Packages (Part 2) #154697

Merged
merged 23 commits into from
Jan 16, 2022

Conversation

mweinelt
Copy link
Member

Motivation for this change

#148779

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 22.05 Release Notes (or backporting 21.11 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
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python 8.has: changelog 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` labels Jan 12, 2022
@mweinelt mweinelt force-pushed the python2-byebye branch 2 times, most recently from d5391c6 to 9eb92b7 Compare January 12, 2022 02:54
@ofborg ofborg bot requested a review from MarcWeber January 12, 2022 03:07
@mweinelt
Copy link
Member Author

@thoughtpolice opae still fails to build, PTAL.

@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Jan 12, 2022
@ofborg ofborg bot requested review from thoughtpolice and viric January 12, 2022 03:42
@mweinelt mweinelt force-pushed the python2-byebye branch 2 times, most recently from a0e2336 to 702e275 Compare January 12, 2022 04:13
@mweinelt mweinelt marked this pull request as ready for review January 12, 2022 05:10
@mweinelt
Copy link
Member Author

@tiramiseb
Copy link
Contributor

You can remove curaByDagoma. I'm not using it anymore and I bet nobody else ever did.

@makefu
Copy link
Contributor

makefu commented Jan 12, 2022

thanks for the cleanup!

Copy link
Contributor

@romildo romildo left a comment

Choose a reason for hiding this comment

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

neap can be removed. It seems that it is not being developed anymore. If sometime it get ported to python 3, it may be added again to nixpkgs.

@7c6f434c
Copy link
Member

Not aware of any benefit of getmail over getmail6 now that I look at this pair in Nixpkgs…

@7c6f434c
Copy link
Member

Tailor and csv2svn (that is also cvs2git) seem useful and trivial to fix via PyPy2. #154752

@dotlambda
Copy link
Member

dotlambda commented Jan 12, 2022

Not aware of any benefit of getmail over getmail6 now that I look at this pair in Nixpkgs…

Should we turn getmail into an alias for getmail6 or suggest using getmail6 in the appropriate throw?

@7c6f434c
Copy link
Member

7c6f434c commented Jan 12, 2022

Upstream promises to be drop-in replacement, so I guess alias could be fine. (I have not tried using getmail6 as I ended up consolidating on fdm instead for unrelated reasons)

@mweinelt
Copy link
Member Author

Not aware of any benefit of getmail over getmail6 now that I look at this pair in Nixpkgs…

Should we turn getmail into an alias for getmail6 or suggest using getmail6 in the appropriate throw?

I did the latter.

Ships python2 scripts and last updated in 2018.
Stuck on python2 and last release in 2010.

> NameError: name 'execfile' is not defined
The package was not updated since 2019 and requires python2 only
dependencies.
Only consumer was blink sip client, which was removed.
The packaged version required python2, updating it showed it doesn't
work, since it tries to write to its read-only output directory. Also
renpy now requires their own pygame_sdl2 fork to build.

More work on this would be required, and since there is no maintainer at
this time I opted for the removal.
The package is unmaintained and uses python2. There are newer upstream
versions, but upgrading the package requires some dedication, which only
a maintainer should need to provide.
Requires pygtk2, which is python2 only and upstream last touched that
script in 2011.
Relies on python2 and last upstream release in 2015.

> AttributeError: 'str' object has no attribute 'decode'
Still actively developed and yet stuck on python2. Also marked as
vulnerable and their issue tracker contains yet another security issue
reported in 2021/10 that the upstream hasn't acknowledged yet.

Mind blown.

Closes: NixOS#135543, NixOS#97274, NixOS#97275
Removed because it requires python2 and the upstream repository looks
undermaintained.
Claims to support python3, but I'm seeing it use implicit relative
imports and it also has not adapted to python3.8 gettext API changes.

Removed for working only with python2.
Also brings it closer to building again. Currently fails with:

```
CMake Error at platforms/scripts/cmake_install.cmake:54 (file):
  file INSTALL cannot find "/build/source/build/bin/afu_platform_config": No
  such file or directory.
Call Stack (most recent call first):
  platforms/cmake_install.cmake:55 (include)
  cmake_install.cmake:58 (include)

make: *** [Makefile:120: install] Error 1
```
The package is stuck on python2 while the upstream has archived its
repository and the last commit is from 2014.

```
  File "/build/ino-0.3.6/ino/runner.py", line 78
    print colorize(str(exc), 'red')
          ^
SyntaxError: invalid syntax
```
Stuck on python2 and there is a fork that isn't. Recommend getmail6
instead.

```
Traceback (most recent call last):
  File "/build/getmail-5.14/nix_run_setup", line 8, in <module>
    exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
  File "setup.py", line 51
    print 'Default installation directories:'
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Default installation directories:')?
```
Doesn't support recent python3 versions that use `async` as a keyword.

```
  File "/build/source/mididings/units/call.py", line 36
    def __init__(self, function, async, cont):
                                 ^
SyntaxError: invalid syntax
```
Last release from 2019, hasn't migrated to python3.

```
Traceback (most recent call last):
  File "/build/DisplayCAL-3.8.9.3/nix_run_setup", line 8, in <module>
    exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))
  File "setup.py", line 258
    print "Bumping version number %s ->" % \
          ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Bumping version number %s ->" % \)?
```
Fixes osmnx build, that previously introduced two gdal versions.
@mweinelt mweinelt merged commit ae02cde into NixOS:master Jan 16, 2022
@mweinelt mweinelt deleted the python2-byebye branch January 16, 2022 02:25
@FRidh FRidh mentioned this pull request Jan 16, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python 8.has: changelog 8.has: clean-up 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 11-100 10.rebuild-linux: 11-100
Projects
Development

Successfully merging this pull request may close these issues.

8 participants