Skip to content

python3.pkgs.{dask, panel, datashader}: fix packages#161835

Merged
FRidh merged 3 commits intoNixOS:masterfrom
FRidh:dask-panel
Feb 25, 2022
Merged

python3.pkgs.{dask, panel, datashader}: fix packages#161835
FRidh merged 3 commits intoNixOS:masterfrom
FRidh:dask-panel

Conversation

@FRidh
Copy link
Member

@FRidh FRidh commented Feb 25, 2022

Motivation for this change
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.

This package is difficult to upgrade because of the nodejs modules
needed.
Using such an option within the package set this way will result in
different packages depending on different versions of dask and thereby
collisions.

Instead, we can simply declare in the package offering the extras the
packages the extra needs.
@FRidh FRidh requested a review from jonringer as a code owner February 25, 2022 13:18
@FRidh FRidh added the 8.has: documentation This PR adds or changes documentation label Feb 25, 2022
@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Feb 25, 2022
@ofborg ofborg bot requested a review from costrouc February 25, 2022 13:32
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Feb 25, 2022
@FRidh FRidh merged commit 0169131 into NixOS:master Feb 25, 2022
@FRidh FRidh deleted the dask-panel branch February 25, 2022 13:45
@jonringer
Copy link
Contributor

this was merged, but still LGTM

@FRidh
Copy link
Member Author

FRidh commented Feb 25, 2022

I imagine in the future we may want to put the Python-related passthru items in an attribute set.

@SuperSandro2000
Copy link
Member

Looks interesting. Definitely need to try that with more things.

adisbladis added a commit to adisbladis/nixpkgs that referenced this pull request Feb 18, 2024
Since NixOS#161835 we've had the
concept of `passthru.optional-dependencies` for Python optional deps.

Having to explicitly put optional-dependencies in the passthru attrset
is a bit strange API-wise, even though it semantically makes sense.

This change unifies the handling of non-optional & optional Python
dependencies using the names established from PEP-621 (standardized pyproject.toml project metadata).
@nixos-discourse
Copy link

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

https://discourse.nixos.org/t/buildpythonpackage-buildtime-dependency-on-an-extra-requires/43336/1

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

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: documentation This PR adds or changes documentation 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

extras_require in python packages

4 participants