<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nixos/nixpkgs.git/pkgs/development/interpreters/python/tests, branch master</title>
<subtitle>Nix Packages collection</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/'/>
<entry>
<title>treewide: remove superfluous disabled</title>
<updated>2026-01-11T17:34:20+00:00</updated>
<author>
<name>Robert Schütz</name>
<email>nix@dotlambda.de</email>
</author>
<published>2026-01-11T17:32:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=1a04744f74b8d9330e36dfb401aea6dba74fba79'/>
<id>1a04744f74b8d9330e36dfb401aea6dba74fba79</id>
<content type='text'>
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
</pre>
</div>
</content>
</entry>
<entry>
<title>python: fix nixenv test</title>
<updated>2025-10-31T01:08:04+00:00</updated>
<author>
<name>qbisi</name>
<email>qbisicwate@gmail.com</email>
</author>
<published>2025-10-31T01:08:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=14fe4b34deba94cfc51f1f35546c67754c19cb56'/>
<id>14fe4b34deba94cfc51f1f35546c67754c19cb56</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>python3: fix passthru tests after b937eac</title>
<updated>2025-07-22T22:52:19+00:00</updated>
<author>
<name>Martin Weinelt</name>
<email>hexa@darmstadt.ccc.de</email>
</author>
<published>2025-07-22T22:47:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=08aed995eaf3f3c9b3ab729cee2a0c1a33db97af'/>
<id>08aed995eaf3f3c9b3ab729cee2a0c1a33db97af</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: add explicit format attribute for Python packages</title>
<updated>2025-07-02T03:56:47+00:00</updated>
<author>
<name>Martin Weinelt</name>
<email>hexa@darmstadt.ccc.de</email>
</author>
<published>2025-07-02T01:20:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=ae4a1a485a7c2f7be3283e76a3a1d42e4bb3a459'/>
<id>ae4a1a485a7c2f7be3283e76a3a1d42e4bb3a459</id>
<content type='text'>
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: format all inactive Nix files</title>
<updated>2024-12-10T19:26:33+00:00</updated>
<author>
<name>Silvan Mosberger</name>
<email>silvan.mosberger@tweag.io</email>
</author>
<published>2024-12-10T19:26:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=4f0dadbf38ee4cf4cc38cbc232b7708fddf965bc'/>
<id>4f0dadbf38ee4cf4cc38cbc232b7708fddf965bc</id>
<content type='text'>
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
    result/bin/apply-formatting $NIXPKGS_PATH
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
    result/bin/apply-formatting $NIXPKGS_PATH
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: remove unused lib (and other) arguments</title>
<updated>2024-07-26T09:18:09+00:00</updated>
<author>
<name>Sigmanificient</name>
<email>edhyjox@gmail.com</email>
</author>
<published>2024-07-17T03:26:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=6dd44107ac5a1a40cd5b02c809294f83ce6dbd20'/>
<id>6dd44107ac5a1a40cd5b02c809294f83ce6dbd20</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>python3.tests.nix-pythonprefix-mypy: Avoid unnecessary rebuilds</title>
<updated>2024-06-14T19:27:46+00:00</updated>
<author>
<name>Silvan Mosberger</name>
<email>silvan.mosberger@tweag.io</email>
</author>
<published>2024-06-14T19:27:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=3f2e484083baab74447660f8eaa0aef40eafa9b7'/>
<id>3f2e484083baab74447660f8eaa0aef40eafa9b7</id>
<content type='text'>
E.g. when the Nix is changed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
E.g. when the Nix is changed
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Fix venv creation in Python environments"</title>
<updated>2024-04-11T15:26:39+00:00</updated>
<author>
<name>Sandro Jäckel</name>
<email>sandro.jaeckel@gmail.com</email>
</author>
<published>2024-04-07T16:54:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=b3b12c2d08e2f5aab1c6f6ae0021ea11a6825b14'/>
<id>b3b12c2d08e2f5aab1c6f6ae0021ea11a6825b14</id>
<content type='text'>
This commit reverts all python changes from 234bb31f611f43f8b744b305ab82035de637aaca.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit reverts all python changes from 234bb31f611f43f8b744b305ab82035de637aaca.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix venv creation in Python environments</title>
<updated>2024-03-22T01:26:57+00:00</updated>
<author>
<name>Colin Putney</name>
<email>colin.putney@vannevarlabs.com</email>
</author>
<published>2024-03-22T01:22:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=234bb31f611f43f8b744b305ab82035de637aaca'/>
<id>234bb31f611f43f8b744b305ab82035de637aaca</id>
<content type='text'>
The way we build python environments is subtly broken. A python
environment should be semantically identical to a vanilla Python
installation in, say, /usr/local. The current implementation, however,
differs in two important ways. The first is that it's impossible to use
python packages from the environment in python virtual environments. The
second is that the nix-generated environment appears to be a venv, but
it's not.

This commit changes the way python environments are built:

  * When generating wrappers for python executables, we inherit argv[0]
    from the wrapper. This causes python to initialize its configuration
    in the environment with all the correct paths.
  * We remove the sitecustomize.py file from the base python package.
    This file was used tweak the python configuration after it was
    incorrectly initialized. That's no longer necessary.

The end result is that python environments no longer appear to be venvs,
and behave more like a vanilla python installation. In addition it's
possible to create a venv using an environment and use packages from
both the environment and the venv.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The way we build python environments is subtly broken. A python
environment should be semantically identical to a vanilla Python
installation in, say, /usr/local. The current implementation, however,
differs in two important ways. The first is that it's impossible to use
python packages from the environment in python virtual environments. The
second is that the nix-generated environment appears to be a venv, but
it's not.

This commit changes the way python environments are built:

  * When generating wrappers for python executables, we inherit argv[0]
    from the wrapper. This causes python to initialize its configuration
    in the environment with all the correct paths.
  * We remove the sitecustomize.py file from the base python package.
    This file was used tweak the python configuration after it was
    incorrectly initialized. That's no longer necessary.

The end result is that python environments no longer appear to be venvs,
and behave more like a vanilla python installation. In addition it's
possible to create a venv using an environment and use packages from
both the environment and the venv.
</pre>
</div>
</content>
</entry>
<entry>
<title>python.tests.tkinter: init</title>
<updated>2023-08-19T11:00:56+00:00</updated>
<author>
<name>Doron Behar</name>
<email>doron.behar@gmail.com</email>
</author>
<published>2023-08-08T06:49:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=ca499f6965b5db2aede9734706e288f4d6012fe8'/>
<id>ca499f6965b5db2aede9734706e288f4d6012fe8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
