Python: Difference between revisions

From NixOS Wiki
imported>Fadenb
m Syntax highlighting
imported>Asymmetric
m Asymmetric moved page Python libraries to Python: Not just libraries
(No difference)

Revision as of 11:05, 26 February 2018

Contribution guidelines

According to the official guidelines for python new package expressions should be placed in pkgs/development/python-modules/<name>/default.nix. Those expressions are then referenced from pkgs/top-level/python-packages.nix like in this example:

{
  aenum = callPackage ../development/python-modules/aenum { };
}

The reasoning behind this is the large size of pkgs/top-level/python-packages.nix. Unfortunately most libraries are still defined in-place in pkgs/top-level/python-packages.nix. If a change to library is necessary or an update is made, it is recommend to move the modified package out of pkgs/top-level/python-packages.nix.

External Documentation