253 Commits

Author SHA1 Message Date
Aliaksandr
aab86321db doc/python: drop python2 references from manual section
Remove python27Packages, python2Packages, and pythonPackages alias
mentions; drop the "python refers to CPython 2.7" sentence and the
Python 2 namespace-collision note; strip Python-2-only inline comments
from the venvShellHook example.

Keep all pypy2/pypy27 references — pypy27 stays defined inside
pythonInterpreters as the bootstrap for pypy3.
2026-05-31 15:16:32 +03:00
Ross Smyth
f37a177e1f doc: Encourage use of python3Packages rather than python3.pkgs 2026-05-12 12:16:15 -04:00
Doron Behar
f8f04a972e doc/python: simplify packageOverrides example 2026-04-29 08:55:46 +03:00
Doron Behar
bfa489d718 doc/python: explain better passthru note
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2026-04-29 08:55:46 +03:00
Doron Behar
7dfebf9c96 python.section.md: List finalAttrs.passthru only attributes 2026-04-29 08:55:46 +03:00
Doron Behar
146bc8dcb2 doc/python: document fixed-point arguments (#271387) 2026-04-27 18:18:28 +03:00
Tom Hunze
e47af8ad01 doc/python: use dirigera as example for specifying dependencies
datashape was removed from nixpkgs.
2026-03-23 11:21:20 +01:00
Vinetos
38af642d2f stestrCheckHook: init
This adds a useful hook to be used for projects that use stestr,
it is primiative at the moment but covers most scenarios for using
it.

This PR also changes a Python module to start using it, once it
lands, follow up PRs can update all of them to use it tree-wide.

Signed-off-by: Vinetos <contact+git@vinetos.fr>
2026-02-21 22:20:21 +01:00
Martin Weinelt
77ca080475 python310: drop
Reaches end of life before NixOS 26.05 and therefore has to leave early.
2026-02-15 03:17:23 +01:00
Jeremy Fleischman
2b115ef0cc doc: update references to nixfmt-rfc-style to treefmt
This completes https://github.com/NixOS/nixpkgs/issues/425583.

Rather than putting `nixfmt` everywhere, I opted to teach people to use
`treefmt` instead. This is more correct, as we have formatting rules for
non-nix files, and also may invoke `nixfmt` with non-default options.
2026-02-07 13:59:27 -08:00
Sigmanificient
fa190fd6aa doc/python: use finalAttrs in examples 2026-01-13 01:14:02 +01:00
Merikei
08bcacdb62 doc: fix end quote typo 2026-01-10 01:46:28 +00:00
Yueh-Shun Li
3a4c37457b doc: document buildPython* stdenv overriding via <function>.override 2025-10-23 14:55:00 +08:00
Martin Weinelt
6785773052 python315: init add 3.15.0a1
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-alpha-1
2025-10-15 18:01:30 +02:00
Ben Siraphob
1e82a2f358 doc: fix typos 2025-09-09 13:14:34 +07:00
Ben Siraphob
cc5b731ed3 doc: fix typos 2025-08-27 11:46:26 -07:00
Doron Behar
ba78835ed9 doc/python: fix commit prefix instructions (refer to pkgs/README)
A followup to:

https://github.com/NixOS/nixpkgs/pull/431688#discussion_r2274409327
2025-08-14 10:32:27 +03:00
Jeremy Fleischman
e7221c7ce4 Revert "treewide: drop usage of nixfmt-rfc-style alias"
This reverts commit c19b2c3c49.

As per the discussion
[here](https://github.com/NixOS/nixpkgs/pull/433100#issuecomment-3184482777),
it's too early to drop usage of the alias in documentation.

Removing the references is tracked by
<https://github.com/NixOS/nixpkgs/issues/425583>, which a member of the
Nix Formatting team will do when the time is right.
2025-08-13 09:56:13 -07:00
Sandro Jäckel
c19b2c3c49 treewide: drop usage of nixfmt-rfc-style alias 2025-08-12 20:49:04 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Wolfgang Walther
62fe016519 treewide: run treefmt with mdcr/nixfmt 2025-07-24 13:52:31 +02:00
nixpkgs-ci[bot]
25a1d550fc Merge master into staging-next 2025-06-11 12:07:06 +00:00
Domen Kožar
19b476ebef various: remove domenkozar from maintainers (#415576) 2025-06-11 10:14:54 +00:00
nixpkgs-ci[bot]
a85cdb9b1d Merge master into staging-next 2025-06-09 06:06:13 +00:00
Peder Bergebakken Sundt
c92582fcbb docs/language-frameworks/python: clarify how to best comment on disabled tests 2025-06-09 04:26:55 +02:00
nixpkgs-ci[bot]
dc23b83b01 Merge master into staging-next 2025-06-07 06:05:16 +00:00
Robert Schütz
7b39a05e07 docs/language-frameworks/python: don't test coverage etc 2025-06-06 09:34:11 -07:00
Martin Weinelt
033d93e793 python3: 3.12.10 -> 3.13.3
Updates the default Python version to 3.13 for the NixOS 25.11 release
cycle. We still keep recursing into python312Packages and
python313Packages.
2025-05-23 16:27:16 +02:00
Ihar Hrachyshka
9d2e92d78b doc: Clarify that fetchPypi is not preferred for python
Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-05-09 20:26:22 -04:00
Martin Weinelt
8a43823c25 docs/language-frameworks/python: specify how to add non-python runtime deps (#332792) 2025-04-27 16:50:18 +02:00
Ihar Hrachyshka
8bf2436c01 doc/python: clarify `optional-dependencies' are only for explicit dep groups (#377049)
Some project may claim, in their README or otherwise, a particular library as
an optional dependency. But it doesn't make it one in the context of the
`optional-dependencies` derivation attribute.
2025-04-24 22:44:27 +02:00
Pol Dellaiera
540ddbcf2f doc: use writableTmpDirAsHomeHook 2025-04-21 07:02:46 +02:00
Pol Dellaiera
bcea0cf344 doc: update Nix code snippets format
Command: `mdcr --config doc/tests/mdcr-config.toml doc/`
2025-04-17 01:30:34 +02:00
nixpkgs-ci[bot]
bd8d4dc802 Merge master into staging-next 2025-04-13 00:41:08 +00:00
Martin Weinelt
8e93fb0f32 python39: drop before the 25.05 branch-off
End of security support is scheduled for 2025-10-31, which does not cover
the complete 25.05 release cycle.
2025-04-13 01:26:42 +02:00
Yueh-Shun Li
bb76d74632 doc: python.section.md: partial rewrites for pytest and pytestCheckHook
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-03-23 23:51:17 +08:00
nixpkgs-ci[bot]
fe64053a45 Merge staging-next into staging 2025-01-20 06:05:33 +00:00
Ihar Hrachyshka
ebc7c89271 doc: Fix typo in python docs (extras_requires -> extras_require) 2025-01-19 15:14:56 -05:00
Yueh-Shun Li
8be69aee96 doc: python: elaborate the makeWrapperArgs behaviour 2025-01-09 18:36:39 +08:00
Yueh-Shun Li
1e8f39148a unittestCheckHook: handle unittestFlagsArray __structuredAttrs-agnostically
Take unittestFlags as the new and conforming interface.

Keep unittestFlagsArray as is.
2025-01-09 18:36:39 +08:00
Yueh-Shun Li
26f09762a8 pytestCheckHook: support __structuredAttrs
Add flag pytestFlags as the new, conforming interface
replacing pytestFlagsArray.

Stop Bash-expanding disabledTests and disabledTestPaths.

Handle disabledTestPaths with `pytest --ignore-glob <path>`
to keep globbing support.
Check if each path glob matches at least one path
using the `glob` module from the Python standard library.

Also make buildPythonPackage and buildPythonApplication
stop escaping the elements of disabledTests and disabledTestPaths.
2025-01-09 18:36:37 +08:00
FliegendeWurst
cd2a21a070 doc/python: update versions 2025-01-07 22:06:20 +01:00
Arne Keller
e4c9d406a0 doc/languages-frameworks/python: Reword section to make commit rules a bit clearer (#339643) 2024-12-09 06:53:44 +01:00
Martin Weinelt
8044c0cc0a python314: init at 3.14.0a1
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-alpha-1
2024-10-16 03:42:47 +02:00
Artturin
f678d0b777 treewide: replace stdenv.is in non nix files (#344342) 2024-10-09 18:17:34 +03:00
Kirill Radzikhovskyy
d04c244c09 python3Packages.mkPythonEditablePackage: correct documentation 2024-10-07 13:39:29 +11:00
Artturin
8f3e655750 doc/python: correct platform conditional 2024-09-27 19:07:45 +03:00
Artturin
40799fc06d treewide: replace stdenv.is in non nix files
Continuing e0464e4788
2024-09-27 19:07:45 +03:00
adisbladis
de1fdc9fe0 python3Packages.mkPythonEditablePackage: init 2024-09-08 17:13:21 +12:00
Gavin John
00a43d7d03 doc/languages-frameworks/python: update references to python 3.12 2024-09-04 19:52:52 -07:00