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

zotify: init at 0.6.13 #310701

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

zotify: init at 0.6.13 #310701

wants to merge 3 commits into from

Conversation

bwkam
Copy link
Contributor

@bwkam bwkam commented May 10, 2024

Description of changes

Closes #310331

  • added zotify
  • added pwinput
  • added a new maintainer entry

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.05 Release Notes (or backporting 23.05 and 23.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
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/3918

@bwkam bwkam requested a review from Aleksanaa May 14, 2024 07:17
@Aleksanaa Aleksanaa changed the title init zotify at 0.6.13 zotify: init at 0.6.13 May 14, 2024
pkgs/by-name/zo/zotify/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/zo/zotify/package.nix Show resolved Hide resolved
@drupol
Copy link
Contributor

drupol commented May 16, 2024

Last thing, did you use nixfmt-rfc-style to format the new files you're introducing?

@bwkam
Copy link
Contributor Author

bwkam commented May 16, 2024

Last thing, did you use nixfmt-rfc-style to format the new files you're introducing?

I think so.

pkgs/by-name/zo/zotify/package.nix Show resolved Hide resolved
pkgs/by-name/zo/zotify/package.nix Outdated Show resolved Hide resolved
@bwkam bwkam force-pushed the init-zotify branch 4 times, most recently from 1101985 to e95399f Compare May 16, 2024 21:01
protobuf
];

doCheck = false;
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There were no tests, but I guess I shouldn't have explicitly disabled it. I added pythonImportsCheck now.


# Requires graphical environment to use pyautogui
doCheck = false;

Copy link
Member

Choose a reason for hiding this comment

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

Please add pythonImportsCheck.

pkgs/by-name/zo/zotify/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/zo/zotify/package.nix Show resolved Hide resolved
pkgs/by-name/zo/zotify/package.nix Show resolved Hide resolved
hash = "sha256-KA+Q4sk+riaFTybRQ3aO5lgPg4ECZE6G+By+x2uP/VM=";
};

build-system = [ python3Packages.setuptools ];
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
build-system = [ python3Packages.setuptools ];
build-system = [ python3.pkgs.setuptools ];

or build-system = with python3.pkgs; [ setuptools ];...more of a personal preference.

Copy link
Contributor

Choose a reason for hiding this comment

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

Unless python3.pkgs has been recently made to work with splicing, it isn't. The manual was specifically updated to advertise python3Packages instead of python3.pkgs: https://nixos.org/manual/nixpkgs/unstable/#buildpythonapplication-function

Copy link
Member

Choose a reason for hiding this comment

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

In https://nixos.org/manual/nixpkgs/unstable/#buildpythonapplication-function there is no mention which approach is preferred or explanation why:

When packaging a Python application with buildPythonApplication, it should be called with callPackage and passed python3 or python3Packages (possibly specifying an interpreter version), like this:

The last part of that section says "python3 or python3Packages". As far as I remember is python3Packages.override still on the todo list.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I wasn't more precise: 70aa345

Copy link
Member

Choose a reason for hiding this comment

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

Link to the actual issue: #211340.

This still is not really documented, though

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure which to use now. Most python packages I saw use python3Packages, so that's what I went with.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm pretty confident that in the current situation we should keep python3Packages; @fabaff would be nice to receive a green light from you too just to know there's no conflict

EDIT(2024-06-02): I'll mark other instances of "python.pkgs v. pythonPackages" as "resolved" for now, to remove the visual noise; they can be "unresolved" later

pkgs/by-name/zo/zotify/package.nix Show resolved Hide resolved
pkgs/by-name/zo/zotify/package.nix Show resolved Hide resolved
pkgs/by-name/zo/zotify/package.nix Outdated Show resolved Hide resolved
@Aleksanaa Aleksanaa removed their request for review May 30, 2024 11:27
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.

Package request: zotify