Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python updates 2023-07-18 #244135

Merged
merged 173 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
9b5a487
python311Packages.service-identity: 21.1.0 -> 23.1.0
fabaff Jun 15, 2023
d74195b
python310Packages.cryptography: 40.0.1 -> 41.0.1
SuperSandro2000 Jun 21, 2023
c185e24
python310Packages.pluggy: 1.0.0 -> 1.2.0
dotlambda Jun 29, 2023
b99bb50
python310Packages.pluggy: run tests
dotlambda Jun 29, 2023
c499860
python310Packages.virtualenv: 20.19.0 -> 20.24.0
dotlambda Jul 18, 2023
141d87e
python310Packages.tzlocal: 4.2 -> 4.3
dotlambda Mar 27, 2023
4bb701d
python311Packages.pycryptodome: 3.17.0 -> 3.18.0
fabaff Jul 8, 2023
cfd1870
python311Packages.validators: 0.20.0 -> 0.21.1
fabaff Jun 15, 2023
2f11899
python310Packages.pyyaml: 6.0 -> 6.0.1
dotlambda Jul 18, 2023
1b43a8d
python310Packages.pytest-asyncio: 0.20.3 -> 0.21.0
dotlambda Mar 24, 2023
9303548
python310Packages.httpcore: 0.16.3 -> 0.17.2
mweinelt Jun 18, 2023
d8f45ee
python3Packages.httpx: 0.23.3 -> 0.24.1
bhipple Jun 11, 2023
85c6c7b
python311Packages.flask-limiter: disable on unsupported Python releases
fabaff Jun 11, 2023
aade3b0
python311Packages.flask-limiter: 3.1.0 -> 3.3.1
fabaff Jun 11, 2023
6ac38eb
python311Packages.devtools: 0.10.0 -> 0.11.0
fabaff May 18, 2023
2c3472e
python311Packages.pytest-httpserver: 1.0.6 -> 1.0.7
fabaff May 17, 2023
c049640
python310Packages.filelock: 3.12.0 -> 3.12.2
dotlambda Jul 9, 2023
d67efb4
python310Packages.requests-toolbelt: 0.10.1 -> 1.0.0
tjni Jun 30, 2023
8d84920
python3Packages.platformdirs: 3.5.1 -> 3.9.1
kirillrdy Jul 12, 2023
39b470e
python310Packages.dj-rest-auth: 3.0.0 -> 4.0.1
r-ryantm Jun 11, 2023
de8fad0
python310Packages.httpcore: add passthru.tests
SuperSandro2000 Mar 19, 2023
9e6ff88
python310Packages.sphinx-autodoc-typehints: 1.22 -> 1.23.0
mweinelt May 3, 2023
dd7721a
python311Packages.python-rtmidi: 1.4.9 -> 1.5.4
fabaff Jun 30, 2023
51db3f6
ledfx: 2.0.67 -> 2.0.69
fabaff Jun 30, 2023
8e5efa2
python310Packages.pybind11: 2.10.4 -> 2.11.1
SuperSandro2000 Jul 18, 2023
5262a7d
doc/python: Demonstrate how to override the blas implementation
doronbehar Jul 12, 2023
8056d85
xsimd: Fix cross compilation
doronbehar Jun 27, 2023
1298c36
pip-build-hook.sh: Support $pipBuildFlags
doronbehar Jun 28, 2023
6560d00
python3.pkgs.pypaBuildHook: init
doronbehar Jul 12, 2023
9176d9e
python3.pkgs.pythran: 0.11.0 -> 0.13.1
doronbehar Jul 13, 2023
4c772b9
python3.pkgs.meson-python: 0.12.1 -> 0.13.1
doronbehar Jun 26, 2023
70d182b
python3.pkgs.meson-python: populate python build flags with $mesonFlags
doronbehar Jul 13, 2023
68efe0a
python3.pkgs.scipy: Add doronbehar as maintainer
doronbehar Jun 27, 2023
8f4914f
python3.pkgs.scipy: 1.10.1 -> 1.11.1
doronbehar May 24, 2023
6828bf6
python310Packages.pyopenssl: 23.1.1 -> 23.2.0
SuperSandro2000 Jul 18, 2023
58e9dcf
python310Packages.pandas: 1.5.3 -> 2.0.3
mweinelt Apr 11, 2023
ca7f8c8
python310Packages.scipy: relax pybind11 dependency
SuperSandro2000 Jul 18, 2023
9f456a0
python310Packages.constantly: use python variant of overrideAttrs
SuperSandro2000 Jul 18, 2023
39f9cc8
python310Packages.a2wsgi: init at 1.7.0
SuperSandro2000 Jul 18, 2023
802e5ab
python310Packages.uvicorn: 0.20.0 -> 0.23.1
SuperSandro2000 Jul 18, 2023
a5e4dd0
python310Packages.gunicorn: 20.1.0 -> 21.1.0
SuperSandro2000 Jul 18, 2023
052f5ae
python310Packages.calver: move tests to passthru.tests
SuperSandro2000 Jul 18, 2023
a020d64
python310Packages.hatchling: 0.13.0 -> 0.18.0
SuperSandro2000 Jul 18, 2023
dc15a2b
python310Packages.trove-classifiers: 2023.5.24 -> 2023.7.6
SuperSandro2000 Jul 18, 2023
5cad16a
python310Packages.jsonschema-specifications: init at 2023.7.1
SuperSandro2000 Jul 18, 2023
8a280b5
python310Packages.jsonschema-spec: 0.1.4 -> 0.2.3
SuperSandro2000 Jul 18, 2023
7c1f46a
python310Packages.referencing: 0.29.1 -> 0.30.0
SuperSandro2000 Jul 18, 2023
bcc2a1b
python310Packages.jsonschema: 4.17.3 -> 4.18.4
SuperSandro2000 Jul 18, 2023
1ee622b
python310Packages.twisted: disable failing test due to pyopenssl update
SuperSandro2000 Jul 18, 2023
2e5cb27
python310Packages.keyring: 23.13.1 -> 24.2.0
dotlambda Jul 18, 2023
895e78a
python310Packages.pikepdf: 7.2.0 -> 8.1.1
dotlambda Jul 14, 2023
b9012fd
python310Packages.cairocffi: 1.4.0 -> 1.5.1
dotlambda Jul 14, 2023
43c9415
maturin: remove seemingly unused dbus buildInput
SuperSandro2000 Jul 18, 2023
9ccbaee
python310Packages.pyjwt: 2.7.0 -> 2.8.0
SuperSandro2000 Jul 18, 2023
61f5fbb
python310Packages.click: 8.1.3 -> 8.1.6
SuperSandro2000 Jul 18, 2023
5571724
python3.pkgs.numpy: 1.24.2 -> 1.25.1
doronbehar Jul 19, 2023
59a8e99
python310Packages.cython_3: 3.0.0b2 -> 3.0.0
mweinelt Jul 19, 2023
1148d23
python311Packages.factory_boy: 3.2.1 -> 3.3.0
fabaff Jul 19, 2023
d9c4b67
python310Packages.jsonschema: run tests with pytest
SuperSandro2000 Jul 19, 2023
21b9b3a
python310Packages.openapi-schema-validator: 0.4.4 -> 0.6.0
mweinelt Jul 19, 2023
23d55b9
python310Packages.openapi-spec-validator: 0.5.6 -> 0.6.0
mweinelt Jul 19, 2023
470db3a
python310Packages.django-oauth-toolkit: disable pytest-xdist for now
SuperSandro2000 Jul 19, 2023
4c0061c
python310Packages.urllib3: 1.26.14 -> 1.26.16
SuperSandro2000 Jul 19, 2023
587e94b
python3.pkgs.gunicorn: 21.1.0 -> 21.2.0
SuperSandro2000 Jul 19, 2023
21366ec
python3.pkgs.drf-spectacular: 0.26.2 -> 0.26.3
SuperSandro2000 Jul 19, 2023
f88e0be
baserow: don't require outdated peer dependencies
SuperSandro2000 Jul 19, 2023
a37a318
python310Packages.scikit-build: 0.16.7 -> 0.17.6
dotlambda Jul 20, 2023
39b5325
taskflow: 3.5.0 -> 3.6.0
dotlambda Jul 20, 2023
1bc9458
rapidfuzz-cpp: 1.11.3 -> 2.0.0
dotlambda Jul 20, 2023
6879da9
python310Packages.rapidfuzz: 3.0.0 -> 3.1.1
dotlambda Jul 20, 2023
8d2246e
python310Packages.levenshtein: 0.21.0 -> 0.21.1
dotlambda Jul 20, 2023
7588527
python310Packages.objgraph: fix tests
dotlambda Jul 20, 2023
0122a38
python310Packages.objgraph: specify optional dependencies
dotlambda Jul 20, 2023
4e7b3a4
poetry: fix build
dotlambda Jul 20, 2023
5704093
python310Packages.botocore: 1.29.79 -> 1.31.9
tjni Jul 20, 2023
438475d
python310Packages.boto3: 1.26.79 -> 1.28.9
tjni Jul 20, 2023
50d38ab
awscli: 1.27.79 -> 1.29.9
tjni Jul 22, 2023
10fd6d0
awscli2: 2.12.7 -> 2.13.3
tjni Jul 22, 2023
0f23a14
awsebcli: refactor, relax dependencies, and enable tests
tjni Jul 22, 2023
aeb8940
python310Packages.fixtures: 3.0.0 -> 4.1.0
tjni Jul 9, 2023
c4af83c
bashate: add missing testtools dependency
tjni Jul 9, 2023
a34f191
pifpaf: add missing testtools dependency
tjni Jul 9, 2023
6a048d0
python310Packages.pyopnsense: add missing testtools dependency
tjni Jul 9, 2023
f542b15
python310Packages.oslotest: add missing six dependency
tjni Jul 9, 2023
b12b1ae
python310Packages.ldappool: add missing six dependency
tjni Jul 9, 2023
3ba65a3
python310Packages.rustworkx: add missing testtools dependency
tjni Jul 10, 2023
6d45281
csvs-to-sqlite: 1.2 -> 1.3
tjni Jul 23, 2023
02cd4de
python310Packages.botocore: add format = "setuptools"
tjni Jul 22, 2023
f3503c5
ansible-later: relax dependency on PyYAML
tjni Jul 22, 2023
0718c34
aws-sam-cli: unpin pyopenssl
tjni Jul 23, 2023
d407a2d
awscli2: allow using cryptography version 41
tjni Jul 23, 2023
852ab54
conan: relax dependency on pyyaml
tjni Jul 23, 2023
4cfa09c
das: 0.3.6 -> 0.3.8
tjni Jul 23, 2023
ab73566
python310Packages.nbformat: 5.7.3 -> 5.9.1
tjni Jul 23, 2023
34c8451
python3Packages.pytest-xdist: 3.2.1 → 3.3.1
sikmir Jul 23, 2023
4ccda2d
python310Packages.zipp: 3.15.0 -> 3.16.2
SuperSandro2000 Jul 23, 2023
c34f066
python310Packages.lxml: 4.9.2 -> 4.9.3-3
SuperSandro2000 Jul 23, 2023
e1007b0
python310Packages.traitlets: cleanup dependencies, change homepage to…
SuperSandro2000 Jun 28, 2023
8126736
python310Packages.qtconsole: add missing dependency on ipython_genutils
SuperSandro2000 Jul 1, 2023
1ea5365
python310Packages.uharfbuzz: 0.24.1 -> 0.37.1, drop inactive maintainer
SuperSandro2000 Jul 2, 2023
5330b05
python3.pkgs.ruamel-yaml: 0.17.21 -> 0.17.32
SuperSandro2000 Jun 21, 2023
4af6b79
awscli2: pin ruamel-yaml
Et7f3 Jul 2, 2023
ce48f9a
pypy310Packages.eventlet: replace nose with nose3, disable hanging te…
SuperSandro2000 Jun 30, 2023
2dafa7e
python3Packages.sympy: 1.11.2 -> 1.12.0
ChrisPattison Jul 22, 2023
b2fe286
python310Packages.pytest: 7.2.1 -> 7.4.0
mweinelt Jul 23, 2023
8eb97ac
python310Packages.pytest-asyncio: 0.21.0 -> 0.21.1
mweinelt Jul 23, 2023
3d826ee
python310Packages.pytest-mock: 3.10.0 -> 3.11.1
mweinelt Jul 23, 2023
92eaff9
python310Packages.pytest-rerunfailures: 11.1.2 -> 12.0
mweinelt Jul 23, 2023
3060a60
python310Packages.pytest-env: 0.8.1 -> 0.8.2
mweinelt Jul 23, 2023
3f0c47f
python310Packages.pytest-subtests: 0.10.0 -> 0.11.0
mweinelt Jul 23, 2023
155e879
python310Packages.pytest-metadata: 2.0.4 -> 3.0.0
mweinelt Jul 23, 2023
99a038d
python310Packages.pytest-cov: 4.0.0 -> 4.1.0
mweinelt Jul 23, 2023
35ffaa2
python310Packages.pytest-factoryboy: 2.1.0 -> 2.5.1
mweinelt Jul 23, 2023
3981820
python310Packages.flit: 3.8.0 -> 3.9.0
mweinelt Jul 24, 2023
6d05ab1
python310Packages.pdm-backend: 2.1.1 -> 2.1.4
mweinelt Jul 24, 2023
af94d88
python310Packages.pdm-pep517: 1.1.2 -> 1.1.4
mweinelt Jul 24, 2023
ea1795f
python310Packages.setuptools-rust: 1.5.2 -> 1.6.0
mweinelt Jul 24, 2023
9f2565b
python310Packages.django-bootstrap3: 23.1 -> 23.4
mweinelt Jul 24, 2023
48ad096
python310Packages.django-bootstrap4: 23.1 -> 23.2
mweinelt Jul 24, 2023
f2d9add
python310Packages.django-js-asset: 2.0 -> 2.1
mweinelt Jul 24, 2023
e40f85f
python3.pkgs.chacha20poly1305-reuseable: 0.2.5 -> 0.3.0
mweinelt Jul 24, 2023
96f2b96
python310Packages.graphene-django: 3.1.2 -> 3.1.3
mweinelt Jul 24, 2023
57c99aa
python311Packages.crownstone-cloud: remove asynctest
mweinelt Jul 25, 2023
af32a73
python311Packages.aioimaplib: disable tests
mweinelt Jul 25, 2023
74e4eff
python310Packages.fnv-hash-fast: 0.3.1 -> 0.4.0
mweinelt Jul 25, 2023
ed1a0dc
python310Packages.cryptography: 41.0.1 -> 41.0.2
SuperSandro2000 Jul 25, 2023
a51b9d5
python310Packages.msgspec: fix hash mismatch
mweinelt Jul 25, 2023
6d8f291
python310Packages.sqlalchemy: 2.0.18 -> 2.0.19
mweinelt Jul 26, 2023
1f78dc9
python310Packages.typing-inspect: 0.8.0 -> 0.9.0
mweinelt Jul 26, 2023
d37303e
python310Packages.aiohttp: disable regularly failing tests
mweinelt Jul 26, 2023
71c4dd5
python310Packages.pygments: 2.14.0 -> 2.15.1
mweinelt Jul 26, 2023
bbc9723
python310Packages.pygments-better-html: 0.1.4 -> 0.1.5
mweinelt Jul 26, 2023
cc1fcef
python310Packages.snitun: disable failing test
mweinelt Jul 26, 2023
7466da3
python310Packages.scikit-learn: 1.2.1 -> 1.3.0
mweinelt Jul 26, 2023
2a06c51
python310Packages.joblib: 1.2.0 -> 1.3.1
mweinelt Jul 26, 2023
52dc6bf
python310Packages.av: use headless ffmpeg variant
mweinelt Jul 26, 2023
bdf1a96
python310Packages.pillow: 9.5.0 -> 10.0.0
mweinelt Jul 26, 2023
8cb2768
python310Packages.kombu: 5.3.0 -> 5.3.1
mweinelt Jul 26, 2023
5c0d3d3
python310Packages.celery: 5.3.0 -> 5.3.1
mweinelt Jul 26, 2023
f56d030
home-assistant: deselect failing tests
mweinelt Jul 26, 2023
3009624
python310Packages.pytest-randomly: 3.12.0 -> 3.13.0
mweinelt Jul 27, 2023
0190e1d
python310Packages.zarr: 2.14.2 -> 2.16.0
mweinelt Jul 27, 2023
7fdc929
python310Packages.xarray: 2023.2.0 -> 2023.7.0
mweinelt Jul 27, 2023
37036dc
python310Packages.jupyter-server: 2.0.6 -> 2.7.0
mweinelt Jul 27, 2023
4220557
python310Packages.pint: 0.20.1 -> 0.22
mweinelt Jul 27, 2023
b9af64a
python310Packages.mypy: 1.3.0 -> 1.4.1
mweinelt Jul 27, 2023
95558af
python310Packages.astroid: 2.14.2 -> 2.15.6
mweinelt Jul 27, 2023
d09efd6
python310Packages.pylint: 2.16.2 -> 2.17.5
mweinelt Jul 27, 2023
c8fcb9a
python310Packages.sanic-testing: 22.12.0 -> 23.6.0
mweinelt Jul 27, 2023
ffaaf0c
python310Packages.sanic-routing: 22.8.0 -> 23.6.0
mweinelt Jul 27, 2023
0ef17cb
python310Packages.html5tagger: init at 1.3.0
mweinelt Jul 27, 2023
06e2ff5
python310Packages.tracerite: init at 1.1.0
mweinelt Jul 27, 2023
49eeca4
python310Packages.sanic: 22.12.0 -> 23.6.0
mweinelt Jul 28, 2023
18601b8
python311Packages.hologram: disable
mweinelt Jul 28, 2023
7933516
python310Packages.poetry-core: use vendored tomlkit
mweinelt Jul 28, 2023
d84e0dd
python310Packages.tomlkit: 0.11.6 -> 0.12.1
mweinelt Jul 28, 2023
5cb5c7d
hatch: 1.6.3 -> 1.7.0
mweinelt Jul 28, 2023
e0326ce
python310Packages.prance: 0.22.02.22.0 -> 23.06.21.0
mweinelt Jul 28, 2023
5444a90
python310Packages.dnspython: 2.3.0 -> 2.4.1
mweinelt Jul 28, 2023
c5c2cce
python310Packages.usort: 1.1.0b2 -> 1.0.7
mweinelt Jul 28, 2023
258a83f
python311Packages.cherrypy: disable failing tests
mweinelt Jul 28, 2023
c677ee5
python310Packages.cvxpy: 1.3.1 -> 1.3.2
mweinelt Jul 28, 2023
d2a74c5
python310Packages.markdown: 3.4.3 -> 3.4.4
dotlambda Jul 28, 2023
ab0ca88
python310Packages.pikepdf: 8.1.1 -> 8.2.1
dotlambda Jul 28, 2023
ae735c5
python310Packages.repath: specify dependencies as function args
mweinelt Jul 28, 2023
ddc1932
python310Packages.flet-core: specify dependencies as function args
mweinelt Jul 28, 2023
c7437c5
python310Packages.flet-core: specify dependencies as function args
mweinelt Jul 28, 2023
e66ea73
python310Packages.dashing: specify dependencies as function args
mweinelt Jul 28, 2023
92d6b02
python310Packages.glad2: specify dependencies as function args
mweinelt Jul 28, 2023
22ad0e7
python310Packages.dask: 2023.4.1 -> 2023.7.1
mweinelt Jul 28, 2023
652646b
python310Packages.mlflow: 2.4.2 -> 2.5.0
mweinelt Jul 28, 2023
a027722
python310Packages.willow: 1.4.1 -> 1.5.1
mweinelt Jul 28, 2023
83efcce
python310Packages.wagtail: 4.2.2 -> 5.0.2
mweinelt Jul 28, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 28 additions & 2 deletions doc/languages-frameworks/python.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -1185,11 +1185,12 @@ following are specific to `buildPythonPackage`:
variables which will be available when the binary is run. For example,
`makeWrapperArgs = ["--set FOO BAR" "--set BAZ QUX"]`.
* `namePrefix`: Prepends text to `${name}` parameter. In case of libraries, this
defaults to `"python3.8-"` for Python 3.8, etc., and in case of applications
to `""`.
defaults to `"python3.8-"` for Python 3.8, etc., and in case of applications to `""`.
* `pipInstallFlags ? []`: A list of strings. Arguments to be passed to `pip
install`. To pass options to `python setup.py install`, use
`--install-option`. E.g., `pipInstallFlags=["--install-option='--cpp_implementation'"]`.
* `pipBuildFlags ? []`: A list of strings. Arguments to be passed to `pip wheel`.
* `pypaBuildFlags ? []`: A list of strings. Arguments to be passed to `python -m build --wheel`.
* `pythonPath ? []`: List of packages to be added into `$PYTHONPATH`. Packages
in `pythonPath` are not propagated (contrary to `propagatedBuildInputs`).
* `preShellHook`: Hook to execute commands before `shellHook`.
Expand Down Expand Up @@ -1244,6 +1245,27 @@ with import <nixpkgs> {};
in python.withPackages(ps: [ ps.blaze ])).env
```

The next example shows a non trivial overriding of the `blas` implementation to
be used through out all of the Python package set:

```nix
python3MyBlas = pkgs.python3.override {
packageOverrides = self: super: {
# We need toPythonModule for the package set to evaluate this
blas = super.toPythonModule(super.pkgs.blas.override {
blasProvider = super.pkgs.mkl;
});
lapack = super.toPythonModule(super.pkgs.lapack.override {
lapackProvider = super.pkgs.mkl;
});
};
};
```

This is particularly useful for numpy and scipy users who want to gain speed with other blas implementations.
Note that using simply `scipy = super.scipy.override { blas = super.pkgs.mkl; };` will likely result in
compilation issues, because scipy dependencies need to use the same blas implementation as well.

#### Optional extra dependencies {#python-optional-dependencies}

Some packages define optional dependencies for additional features. With
Expand Down Expand Up @@ -1463,6 +1485,10 @@ are used in `buildPythonPackage`.
- `flitBuildHook` to build a wheel using `flit`.
- `pipBuildHook` to build a wheel using `pip` and PEP 517. Note a build system
(e.g. `setuptools` or `flit`) should still be added as `nativeBuildInput`.
- `pypaBuildHook` to build a wheel using
[`pypa/build`](https://pypa-build.readthedocs.io/en/latest/index.html) and
PEP 517/518. Note a build system (e.g. `setuptools` or `flit`) should still
be added as `nativeBuildInput`.
- `pipInstallHook` to install wheels.
- `pytestCheckHook` to run tests with `pytest`. See [example usage](#using-pytestcheckhook).
- `pythonCatchConflictsHook` to check whether a Python package is not already existing.
Expand Down
8 changes: 4 additions & 4 deletions pkgs/applications/audio/ledfx/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{ lib
, python3
, fetchPypi
, python3
}:

python3.pkgs.buildPythonPackage rec {
pname = "ledfx";
version = "2.0.67";
version = "2.0.69";
format = "setuptools";

src = fetchPypi {
inherit pname version;
hash = "sha256-lFxAMjglQZXCySr83PtvStU6hw2ucQu+rSjIHo1yZBk=";
hash = "sha256-gkO6XYiPMkU/zRLvc0yd3jJXVcAgAkR1W1ELTSN461o=";
};

postPatch = ''
Expand Down Expand Up @@ -52,7 +52,7 @@ python3.pkgs.buildPythonPackage rec {
doCheck = false;

meta = with lib; {
description = "LedFx is a network based LED effect controller with support for advanced real-time audio effects";
description = "Network based LED effect controller with support for advanced real-time audio effects";
homepage = "https://github.com/LedFx/LedFx";
changelog = "https://github.com/LedFx/LedFx/blob/${version}/CHANGELOG.rst";
license = licenses.gpl3Only;
Expand Down
10 changes: 10 additions & 0 deletions pkgs/development/interpreters/python/hooks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ in {
};
} ./pip-build-hook.sh) {};

pypaBuildHook = callPackage ({ makePythonHook, build, wheel }:
makePythonHook {
name = "pypa-build-hook.sh";
propagatedBuildInputs = [ build wheel ];
substitutions = {
inherit pythonInterpreter;
};
} ./pypa-build-hook.sh) {};


pipInstallHook = callPackage ({ makePythonHook, pip }:
makePythonHook {
name = "pip-install-hook";
Expand Down
11 changes: 10 additions & 1 deletion pkgs/development/interpreters/python/hooks/pip-build-hook.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
# Setup hook to use for pip projects
echo "Sourcing pip-build-hook"

declare -a pipBuildFlags

pipBuildPhase() {
echo "Executing pipBuildPhase"
runHook preBuild

mkdir -p dist
echo "Creating a wheel..."
@pythonInterpreter@ -m pip wheel --verbose --no-index --no-deps --no-clean --no-build-isolation --wheel-dir dist .
@pythonInterpreter@ -m pip wheel \
--verbose \
--no-index \
--no-deps \
--no-clean \
--no-build-isolation \
--wheel-dir dist \
$pipBuildFlags .
echo "Finished creating a wheel..."

runHook postBuild
Expand Down
19 changes: 19 additions & 0 deletions pkgs/development/interpreters/python/hooks/pypa-build-hook.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Setup hook to use for pypa/build projects
echo "Sourcing pypa-build-hook"

pypaBuildPhase() {
echo "Executing pypaBuildPhase"
runHook preBuild

echo "Creating a wheel..."
@pythonInterpreter@ -m build --no-isolation --outdir dist/ --wheel $pypaBuildFlags
echo "Finished creating a wheel..."

runHook postBuild
echo "Finished executing pypaBuildPhase"
}

if [ -z "${dontUsePypaBuild-}" ] && [ -z "${buildPhase-}" ]; then
echo "Using pypaBuildPhase"
buildPhase=pypaBuildPhase
fi
4 changes: 2 additions & 2 deletions pkgs/development/libraries/rapidfuzz-cpp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@

stdenv.mkDerivation (finalAttrs: {
pname = "rapidfuzz-cpp";
version = "1.11.3";
version = "2.0.0";

src = fetchFromGitHub {
owner = "maxbachmann";
repo = "rapidfuzz-cpp";
rev = "v${finalAttrs.version}";
hash = "sha256-Qqdw5dy+JUBSDpbWEh3Ap3+3h+CcNdfBL+rloRzWGEQ=";
hash = "sha256-gLiITRCxX3nkzrlvU1/ZPxEo2v7q79/MwrnURUjrY28=";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/taskflow/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@

stdenv.mkDerivation rec {
pname = "taskflow";
version = "3.5.0";
version = "3.6.0";

src = fetchFromGitHub {
owner = "taskflow";
repo = "taskflow";
rev = "v${version}";
hash = "sha256-UUWJENGn60YQdUSQ55uL+/3xt/JUsVuKnqm/ef7wPVM=";
hash = "sha256-Iy9BhkyJa2nFxwVXb4LAlgVAHnu+58Ago2eEgAIlZ7M=";
};

patches = [
Expand Down
4 changes: 3 additions & 1 deletion pkgs/development/libraries/xsimd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake ];

cmakeFlags = [ "-DBUILD_TESTS=ON" ];
cmakeFlags = [
"-DBUILD_TESTS=${if (doCheck && stdenv.hostPlatform == stdenv.buildPlatform) then "ON" else "OFF"}"
];

doCheck = true;
nativeCheckInputs = [ gtest ];
Expand Down
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/a2wsgi/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchPypi
, asgiref
, httpx
, pdm-backend
, pdm-pep517
, pytest-asyncio
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "a2wsgi";
version = "1.7.0";
format = "pyproject";

src = fetchPypi {
inherit pname version;
hash = "sha256-qQb2LAJQ6wIBEguTQX3QsSsQW12zWvQxv+hu8NxburI=";
};

nativeBuildInputs = [
pdm-backend
pdm-pep517
];

nativeCheckInputs = [
asgiref
httpx
pytest-asyncio
pytestCheckHook
];

meta = with lib; {
description = "Convert WSGI app to ASGI app or ASGI app to WSGI app";
homepage = "https://github.com/abersheeran/a2wsgi";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
4 changes: 4 additions & 0 deletions pkgs/development/python-modules/aiohttp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ buildPythonPackage rec {
"test_async_with_session"
"test_session_close_awaitable"
"test_close_run_until_complete_not_deprecated"
# https://github.com/aio-libs/aiohttp/issues/7130
"test_static_file_if_none_match"
"test_static_file_if_match"
"test_static_file_if_modified_since_past_date"
] ++ lib.optionals stdenv.is32bit [
"test_cookiejar"
] ++ lib.optionals stdenv.isDarwin [
Expand Down
3 changes: 3 additions & 0 deletions pkgs/development/python-modules/aioimaplib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ buildPythonPackage rec {
hash = "sha256-7Ta0BhtQSm228vvUa5z+pzM3UC7+BskgBNjxsbEb9P0=";
};

# https://github.com/bamthomas/aioimaplib/issues/54
doCheck = pythonOlder "3.11";

nativeCheckInputs = [
asynctest
docutils
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/astroid/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

buildPythonPackage rec {
pname = "astroid";
version = "2.14.2"; # Check whether the version is compatible with pylint
version = "2.15.6"; # Check whether the version is compatible with pylint
format = "pyproject";

disabled = pythonOlder "3.7.2";
Expand All @@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "PyCQA";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-SIBzn57UNn/sLuDWt391M/kcCyjCocHmL5qi2cSX2iA=";
hash = "sha256-0oNNEVD8rYGkM11nGUD+XMwE7xgk7mJIaplrAXaECFg=";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/av/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
, setuptools

# runtime
, ffmpeg
, ffmpeg-headless

# tests
, numpy
Expand Down Expand Up @@ -38,7 +38,7 @@ buildPythonPackage rec {
];

buildInputs = [
ffmpeg
ffmpeg-headless
];

preCheck = ''
Expand Down
11 changes: 6 additions & 5 deletions pkgs/development/python-modules/boto3/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,26 @@

buildPythonPackage rec {
pname = "boto3";
version = "1.26.79"; # N.B: if you change this, change botocore and awscli to a matching version
version = "1.28.9"; # N.B: if you change this, change botocore and awscli to a matching version
format = "pyproject";

src = fetchFromGitHub {
owner = "boto";
repo = pname;
rev = version;
hash = "sha256-9Xsng4xZ+IGNZ3ViYVrOyKZdRH6QPSjZALj9Q3HECBU=";
hash = "sha256-NkNHA20yn1Q7uoq/EL1Wn8F1fpi1waQujutGIKsnxlI=";
};

nativeBuildInputs = [
setuptools
];

propagatedBuildInputs = [
botocore
jmespath
s3transfer
setuptools
];

doCheck = true;

nativeCheckInputs = [
pytestCheckHook
];
Expand Down
9 changes: 3 additions & 6 deletions pkgs/development/python-modules/botocore/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,24 @@
, fetchPypi
, python-dateutil
, jmespath
, docutils
, urllib3
, pytestCheckHook
, jsonschema
}:

buildPythonPackage rec {
pname = "botocore";
version = "1.29.79"; # N.B: if you change this, change boto3 and awscli to a matching version
version = "1.31.9"; # N.B: if you change this, change boto3 and awscli to a matching version
SuperSandro2000 marked this conversation as resolved.
Show resolved Hide resolved
format = "setuptools";

src = fetchPypi {
inherit pname version;
hash = "sha256-x97UQGK+07kolEz7CeFXjtP+0OTJjeTyM/PCBWqNSR4=";
hash = "sha256-vYSdOslfF4E4Xtgx11OgSj7IcKWdZZgXWq7dcdwrr18=";
};

propagatedBuildInputs = [
python-dateutil
jmespath
docutils
urllib3
];

Expand All @@ -30,8 +29,6 @@ buildPythonPackage rec {
jsonschema
];

doCheck = true;

disabledTestPaths = [
# Integration tests require networking
"tests/integration"
Expand Down