Skip to content

python3Packages.flax: init at 0.3.6#153761

Merged
samuela merged 1 commit intoNixOS:masterfrom
ndl:submit/flax
Jan 7, 2022
Merged

python3Packages.flax: init at 0.3.6#153761
samuela merged 1 commit intoNixOS:masterfrom
ndl:submit/flax

Conversation

@ndl
Copy link
Contributor

@ndl ndl commented Jan 6, 2022

Motivation for this change

Part of "extra JAX libraries / frameworks" implementation, see the discussion in #152754

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.

@ndl ndl requested review from FRidh and jonringer as code owners January 6, 2022 19:53
@ndl ndl requested a review from samuela January 6, 2022 19:53
@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Jan 6, 2022
@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 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 Jan 6, 2022
@samuela
Copy link
Member

samuela commented Jan 6, 2022

Result of nixpkgs-review pr 153761 run on x86_64-linux 1

2 packages built:
  • python38Packages.flax
  • python39Packages.flax

Copy link
Member

@samuela samuela left a comment

Choose a reason for hiding this comment

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

LGTM I'll squash and merge tomorrow unless anyone objects

Copy link
Member

Choose a reason for hiding this comment

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

See https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#submitting-changes.

Suggested change
description = "Flax is a neural network library for JAX designed for flexibility.";
description = "Neural network library for JAX";

I suggest to skip the "marketing" parts. For upstream it's "flexibility" for the average user perhaps "complexity".

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 typically just use the first sentence from the "Description / Overview" section in README to let the authors describe their package in the words they prefer. But no strong preferences from my side, changed to your suggestion.

Copy link
Member

Choose a reason for hiding this comment

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

The setup.py file is mentioning additional requirements.

Copy link
Member

Choose a reason for hiding this comment

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

looks like it's only missing jax, perhaps because of a circular dependency issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

jax is already pulled in via chex -> optax, in fact it's redundant in their setup.py - not sure why they have it.

@ndl ndl force-pushed the submit/flax branch 2 times, most recently from 803f9f0 to 54f0507 Compare January 6, 2022 21:53
@samuela samuela merged commit 292e674 into NixOS:master Jan 7, 2022
@samuela
Copy link
Member

samuela commented Jan 7, 2022

Just merged, thanks @ndl! I'll use this one myself!

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: package (new) This PR adds a new package 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. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants