Commit Graph

112 Commits

Author SHA1 Message Date
Eric Firestone
1499b7cdc3
python2-modules: Add a README explaining that Python 2 is no longer supported (#348583)
Add a README explaining that Python 2 is no longer supported
2024-10-31 17:20:08 +08:00
Artturin
f0e657f3b1 Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
github-actions[bot]
9108a87017
Merge master into staging-next 2024-09-24 18:04:41 +00:00
Emily
c4639f8cbc python27Packages.more-itertools: use unittestCheckHook
I thought that the Python 2 package set was entirely separate from
the Python 3 one, but this appears to actually be using the main
nose package. The actual code doesn’t use nose at all, and their
`tox.ini` uses unittest, so let’s fix that…
2024-09-23 00:13:04 +01:00
Philip Taron
4160ccc634
treewide: handle *Phases variables __structuredAttrs-agnostically (#339117) 2024-09-07 09:17:57 -07:00
Aleksana
e272cd8171
python2Packages.wcwidth: fix build (#292007) 2024-09-04 13:26:16 +08:00
Yueh-Shun Li
054c5f0e10 treewide: handle preDistPhases __structuredAttrs-agnostically
Always specify the preDistPhases attribute as a list instead of a string.

Append elements to the preDistPhases Bash variable using appendToVar
instead of string or Bash array concatenation.

Handle element insertion before a specific element using string
substitution as before, but handle both structured and unstructured
attributes.
2024-09-03 05:33:59 +08:00
Sigmanificient
63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
Bryan Lai
5ebb67ecc9 python2Packages.wcwidth: @bryango in maintainers
Add myself in maintainers, and make sure that python3 maintainers is
_not_ pinged for python2 issues.
2024-07-27 15:47:12 +08:00
Bryan Lai
d34d5280d1 python2Packages.wcwidth: fix build
As of version 0.2.13 upstream still supports python2. In the future, this
package should be dropped or pinned to the last working version after the
final release for python2.
2024-07-27 15:47:12 +08:00
Alexis Hildebrandt
f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Alexis Hildebrandt
bf995e3641 treewide: Remove ending period from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
2024-06-09 23:04:51 +02:00
Sandro Jäckel
653837881e
treewide: replace lib/${python.libPrefix}/site-packages with its shorthand ${python.sitePackages}
which should be always preferred
2024-01-30 19:56:57 +01:00
K900
887e96e875 Merge remote-tracking branch 'origin/master' into staging-next 2024-01-02 10:55:23 +03:00
Sergei Trofimovich
46b946ea18 pypy2Packages.attrs: fix tests eval
Without the change `tests` eval fails as:

    $ nix build --no-link -f. pypy2Packages.attrs.tests
    error:
       error: path 'pkgs/development/python2-modules/attrs/tests.nix' does not exist
2023-12-30 16:01:14 +00:00
Martin Weinelt
936386b0c1
python2Packages.wcwidth: fix eval 2023-12-20 20:46:23 +01:00
Bryan Lai
8a3eb935ac python2Packages.pycairo: backport test fix
Fix pytest failure of `test_svg_surface_get_document_unit`.

This fix is backported to python 2 from upstream. Upstream has dropped
support for python 2, but the fix works regardless of python versions.
Hence we backport the fix for python 2, since many nix packages still
depend on python2Packages.pycairo.

Upstream: 678edd94d8
Co-authored-by: Brian Leung <29217594+leungbk@users.noreply.github.com>
2023-11-22 20:55:23 +08:00
Adam Joseph
bc2d598878 treewide: change pythonForBuild to pythonOnBuildForHost 2023-11-05 17:42:12 -08:00
github-actions[bot]
c90f3611dc
Merge master into staging-next 2023-08-06 00:02:21 +00:00
Theodore Ni
809de4d210
python2.pkgs.wcwidth: add missing python2 dependency 2023-08-03 07:49:32 -07:00
Theodore Ni
9058cdef7d
python2.pkgs.backports-functools-lru-cache: init at 1.6.6 2023-08-03 07:49:18 -07:00
github-actions[bot]
82235cc6e6
Merge staging-next into staging 2023-07-24 00:02:59 +00:00
Sandro Jäckel
cf6c96533b
treewide: reduce packages I maintainer 2023-07-23 19:30:22 +02:00
Sandro
c7ba59e485
Merge pull request #217565 from winterqt/bootstrapped-pip-remove-extraneous-pythonpath-entry 2023-07-19 15:22:52 +02:00
Artturin
226e149145 treewide: env.NIX_CFLAGS_COMPILE use optionalString instead of optional
env values must be strings
2023-02-22 21:23:05 +02:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Winter
e59046bc48 python{2,3}Packages.bootstrapped-pip: remove extraneous entry from PYTHONPATH
From my testing, wheel is only retrieved from its installation in $out,
and removing it doesn't break anything. I'm unsure if it was required when
bootstrapping was initially added [0], but it definitely isn't now.

I also took the chance to clarify the comment a bit.

[0]: 56727dc1ff
2023-02-21 16:21:41 -05:00
Frederik Rietdijk
93f577aed8 python2Packages.wheel: keep 0.37.1 for python2 since 0.38 dropped support 2023-02-05 12:01:22 +01:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
github-actions[bot]
bf81ac4bc6
Merge master into staging-next 2022-12-15 12:01:09 +00:00
Fabián Heredia Montiel
2230108f55 python2Packages.typing: revert removal
This reverts commit ff69267377.
2022-12-15 00:28:46 -08:00
Fabián Heredia Montiel
8549e49c18 python2Packages.scandir: revert removal
This reverts commit 7d4a0668d2.

Closes https://github.com/NixOS/nixpkgs/issues/205742
2022-12-15 00:28:46 -08:00
Vladimír Čunát
de033ae75a
Merge branch 'master' into staging-next 2022-12-10 16:19:36 +01:00
Robert Schütz
5efd8de503
python2Packages.pygobject2: move to python2-modules 2022-12-09 22:36:50 +01:00
Robert Schütz
c760e71626 python2Packages.pygobject3: remove 2022-12-09 12:17:25 -08:00
Robert Schütz
4bd693080a python2Packages.gtkme: remove 2022-12-09 12:15:46 -08:00
Robert Schütz
a9028840ef python2Packages.idna: remove 2022-12-09 12:15:13 -08:00
Robert Schütz
7d4a0668d2 python2Packages.scandir: remove 2022-12-09 08:37:41 -08:00
Robert Schütz
563a4cd15d python2Packages.pysqlite: remove 2022-12-09 08:37:41 -08:00
Robert Schütz
3627a1fe1d python2Packages.certifi: remove 2022-12-09 08:37:41 -08:00
Robert Schütz
ff69267377 python2Packages.typing: remove 2022-12-09 08:37:41 -08:00
Robert Schütz
c2b5367847 python2Packages.google-apputils: remove 2022-12-09 08:37:41 -08:00
Robert Schütz
3817fec3e2 python2Packages.protobuf: remove 2022-12-09 08:37:40 -08:00
Robert Schütz
cf285d46cb python2Packages.pygments: remove 2022-12-09 08:37:40 -08:00
Robert Schütz
cb695919b2 python2Packages.botocore: remove 2022-12-09 08:37:40 -08:00
Robert Schütz
7cb6c63e86 python2Packages.s3transfer: remove 2022-12-09 08:37:40 -08:00
Robert Schütz
dc42927243 python2Packages.boto3: remove 2022-12-09 08:37:40 -08:00