doc/python: reword sorting gaurentee to be stronger
This commit is contained in:
parent
51bc5783e2
commit
6ed55034ee
|
@ -1554,9 +1554,9 @@ Following rules are desired to be respected:
|
||||||
|
|
||||||
* Python libraries are called from `python-packages.nix` and packaged with
|
* Python libraries are called from `python-packages.nix` and packaged with
|
||||||
`buildPythonPackage`. The expression of a library should be in
|
`buildPythonPackage`. The expression of a library should be in
|
||||||
`pkgs/development/python-modules/<name>/default.nix`. Libraries in
|
`pkgs/development/python-modules/<name>/default.nix`.
|
||||||
`pkgs/top-level/python-packages.nix` are sorted quasi-alphabetically to avoid
|
* Libraries in `pkgs/top-level/python-packages.nix` are sorted
|
||||||
merge conflicts.
|
alphanumerically to avoid merge conflicts and ease locating attributes.
|
||||||
* Python applications live outside of `python-packages.nix` and are packaged
|
* Python applications live outside of `python-packages.nix` and are packaged
|
||||||
with `buildPythonApplication`.
|
with `buildPythonApplication`.
|
||||||
* Make sure libraries build for all Python interpreters.
|
* Make sure libraries build for all Python interpreters.
|
||||||
|
@ -1570,3 +1570,4 @@ Following rules are desired to be respected:
|
||||||
[PEP 0503](https://www.python.org/dev/peps/pep-0503/#normalized-names). This
|
[PEP 0503](https://www.python.org/dev/peps/pep-0503/#normalized-names). This
|
||||||
means that characters should be converted to lowercase and `.` and `_` should
|
means that characters should be converted to lowercase and `.` and `_` should
|
||||||
be replaced by a single `-` (foo-bar-baz instead of Foo__Bar.baz )
|
be replaced by a single `-` (foo-bar-baz instead of Foo__Bar.baz )
|
||||||
|
* Attribute names in `python-packages.nix` should be sorted alphanumerically.
|
||||||
|
|
Loading…
Reference in a new issue