Skip to content

pymol: fix AttributeError in set command#543802

Open
vldmrtlk wants to merge 1 commit into
NixOS:masterfrom
vldmrtlk:patch-pymol
Open

pymol: fix AttributeError in set command#543802
vldmrtlk wants to merge 1 commit into
NixOS:masterfrom
vldmrtlk:patch-pymol

Conversation

@vldmrtlk

Copy link
Copy Markdown

issue

calls of set with float or integer arguments (i.e. set transparency, 0.3) lead to AttributeError due to missing has_key attribute in Shortcut class. It seems that 6d9211a added patches that lead to refactoring of Shortcut class while stale call of has_key in settings.py was left out.

changes

added upstream patch schrodinger/pymol-open-source@7124684 which removes the stale call.

Things done

@nixpkgs-ci
nixpkgs-ci Bot requested review from natsukium and samlich July 20, 2026 10:46
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle! labels Jul 20, 2026

@natsukium natsukium left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM overall, just left a minor nit.

Comment thread pkgs/by-name/py/pymol/package.nix Outdated
hash = "sha256-dcYRzUhiaGlR3CjQ0BktA5L+8lFyVdw0+hIz3Li7gDQ=";
})
# Fixes `set` command with int/float arguments, i.e. `set transparency, 0.5`
(fetchpatch {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please use fetchpatch2 here.

nixpkgs/pkgs/README.md

Lines 619 to 621 in 09f6928

### Fetching patches
In the interest of keeping our maintenance burden and the size of Nixpkgs to a minimum, patches already merged upstream or published elsewhere _should_ be retrieved using `fetchpatch2`:

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

changed to fetchpatch2 only for the patch i've added, there are 3 other patches applied with fetchpatch though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package 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. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants