Commit graph

146 commits

Author SHA1 Message Date
Doron Behar 51c7b1f7f6 python3Packages.pysequoia: init at 0.1.14
Also, make `python3Packages.sequoia` throw a message regarding it's
replacement of `python3Packages.sequoia`. The main sequoia-pgp/sequoia
repository doesn't ship Python code since 0.25.0, just a binary.
2023-06-26 13:16:53 +03: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
Vladimír Čunát 59a68f487d
Merge branch 'staging-next' into staging 2022-12-16 11:20:50 +01: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
Robert Schütz 9551ca3318 python310Packages.six: run tests 2022-12-14 16:53:36 -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
Robert Schütz d2fa83297a python2Packages.pyroma: remove 2022-12-09 08:13:35 -08:00
Robert Schütz 0cc6df3f8f python2Packages.pytest-runner: remove 2022-12-09 08:10:55 -08:00
Robert Schütz 5eb43616fe python2Packages.chardet: remove 2022-12-09 08:09:23 -08:00
Robert Schütz 3ff1f3d1c1 python2Packages.sphinxcontrib-websupport: remove 2022-12-09 08:06:32 -08:00
Robert Schütz 04c143eedb python2Packages.sphinx: remove 2022-12-09 08:05:58 -08:00
Robert Schütz a1bde47ce0 python2Packages.marisa: remove 2022-12-09 08:03:50 -08:00
Vladimír Čunát 9c497bb8d6
Merge branch 'staging-next' into staging 2022-12-09 10:27:46 +01:00
Robert Schütz 0fa639e2aa python2Packages.numpy: remove 2022-12-03 22:50:20 -08:00
Robert Schütz e5f735efd3 python2Packages.construct: remove 2022-12-03 22:50:20 -08:00
Robert Schütz 76320a7d94 python2Packages.pillow: remove 2022-12-03 22:50:20 -08:00
Robert Schütz b64c0b1a12 python2Packages.pyyaml: remove 2022-12-03 22:50:20 -08:00
Robert Schütz 47cd6b0a4e python2Packages.markdown: remove 2022-12-03 21:54:50 -08:00
Robert Schütz ccd71595e9 python2Packages.cheetah: remove 2022-12-03 19:00:03 -08:00
Robert Schütz d3b70b47e3 python2Packages.TurboCheetah: remove 2022-12-03 18:58:11 -08:00
Robert Schütz 1d3f70b5fb python2Packages.httpretty: remove 2022-12-03 18:57:20 -08:00
Robert Schütz 53013ae601 python2Packages.prettytable: remove 2022-12-03 18:57:20 -08:00
Robert Schütz c99c95f795 python2Packages.mutagen: remove 2022-12-03 18:57:20 -08:00
Robert Schütz 2eb15da448 python2Packages.qpid-python: remove 2022-12-03 18:57:19 -08:00
Theodore Ni 4fc97dce3c
python310Packages.cffi: patch closures to work on M1 machines
Trusts the libffi library inside of nixpkgs on Apple devices.

When Apple's fork of libffi is not detected, cffi assumes that libffi
uses a strategy for creating closures (i.e. callbacks) that is in
certain cases susceptible to a security exploit.

Based on some analysis I did:

  https://groups.google.com/g/python-cffi/c/xU0Usa8dvhk

I believe that libffi already contains the code from Apple's fork that
is deemed safe to trust in cffi.

It uses a more sophisticated strategy for creating trampolines to
support closures that works on Apple Silicon, while the simple approach
that cffi falls back on does not, so this patch enables code that uses
closures on M1 Macs again.

Notably, pyOpenSSL is impacted and will be fixed by this, reported in

  https://github.com/pyca/pyopenssl/issues/873

Note that libffi closures still will not work on signed apps without the
com.apple.security.cs.allow-unsigned-executable-memory entitlement while

  https://github.com/libffi/libffi/pull/621

is still open (which I haven't tested but is my best guess from reading).

I am hopeful that all of these changes will be upstreamed back into cffi
and libffi, and that this comment provides enough breadcrumbs for future
maintainers to track and clean this up.
2022-11-20 16:16:07 -08:00
Frederik Rietdijk 33d12e5f0b pythonPackages: ensure all derivations provide python modules
This adds a test to ensure no new uses of `buildPythonApplication` can
be added to `python-packages.nix`.

Python packages can be grouped into two groups: 1) applications and 2)
packages providing importable modules. In `python-packages.nix` we only
want to have 2). 1) should be in the top-level package set.

To achieve this, all setup hooks need to be marked as being a setup hook.
For the setup hooks in the Python packages set this is done by creating
a new builder, `makePythonHook`.

Because there were issues with splicing, the file importing all the hooks
is converted to an extension. All non-packages were moved out of `python-packages.nix`
into `python-packages-base.nix`. The `keep` argument to `makeScopeWithSplicing
was cleaned up as well; there is no need to keep this one manually in sync
reducing the risk of breaking cross-compilation.
2022-10-27 10:03:16 +02:00
Sandro Jäckel 67dece3b2c
python310Packages.attrs: 21.4.0 -> 22.1.0 2022-08-05 23:22:35 +02:00
Robert Schütz e5dcb4efd2 python2Packages.lpod: remove 2022-06-07 16:39:08 +00:00
Robert Schütz f9c76fbaec python2Packages.libcloud: remove 2022-06-07 16:39:07 +00:00
Robert Schütz c769a56661 python2Packages.ipaddr: remove 2022-06-07 16:39:07 +00:00
Robert Schütz 3367f6e4e6 python2Packages.wsproto: remove 2022-06-07 16:39:07 +00:00
Robert Schütz a9aba22cdc python2Packages.freezegun: remove 2022-06-07 16:39:07 +00:00
Robert Schütz 2a54a83573 python2Packages.decorator: remove 2022-06-07 16:39:07 +00:00
Robert Schütz c1c1104596 python2Packages.cryptography: remove 2022-06-07 16:39:07 +00:00