Commit Graph
246 Commits
Author SHA1 Message Date
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äckelandAlyssa Ross 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]andGitHub 25a1d550fc Merge master into staging-next 2025-06-11 12:07:06 +00:00
Domen KožarandGitHub 19b476ebef various: remove domenkozar from maintainers (#415576) 2025-06-11 10:14:54 +00:00
nixpkgs-ci[bot]andGitHub 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]andGitHub 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 WeineltandGitHub 8a43823c25 docs/language-frameworks/python: specify how to add non-python runtime deps (#332792) 2025-04-27 16:50:18 +02:00
Ihar HrachyshkaandGitHub 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 DellaieraandValentin Gagarin 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]andGitHub 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
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]andGitHub 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 KellerandGitHub 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
ArtturinandGitHub 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
Gavin John 3e2e5daab4 doc/languages-frameworks/python: Reword section to make commit rules a bit clearer 2024-09-04 19:52:24 -07:00
adisbladisandGitHub 74eefb4210 doc/languages-frameworks/python: fix typos (#322267) 2024-09-01 15:35:33 +12:00
Colin d6de00150e doc/languages-frameworks/python: fix typos 2024-09-01 00:41:03 +00:00
adisbladis 93ff3f6b76 python3Packages.psycopg2-binary: Fix pname spelling 2024-08-30 15:25:36 +12:00
adisbladis d3e7844bbc python3Packages.psycopg2-binary: init at 2.9.9
Pscycopg2-binary is normally used in Python development to avoid having to build psycopg2 from source.
In nixpkgs we always want ot build from source whenever possible, but it can still be useful to provide a psycopg2-binary package.

This "fake" package exists to satisfy a dependency on psycopg2-binary, but still use the build from psycopg2.

cc @misuzu https://github.com/nix-community/pyproject.nix/issues/143
2024-08-30 11:05:29 +12:00
adisbladis 8cd58c7e14 python3Packages.mkPythonMetaPackage: init
This function exists create a meta package containing [metadata files](https://packaging.python.org/en/latest/specifications/recording-installed-packages/) to satisfy a dependency on a package, without it actually having been installed into the environment.
2024-08-30 00:24:31 +12:00
Martin Weinelt 0e1624df44 Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/development/python-modules/pycdio/default.nix
2024-08-11 03:10:34 +02:00