Skip to content

python314Packages.bson: 0.5.10 -> 0.5.10-unstable-2025-11-27, fix build - #476538

Closed
StarryReverie wants to merge 1 commit into
NixOS:masterfrom
StarryReverie:fix-python314-bson
Closed

python314Packages.bson: 0.5.10 -> 0.5.10-unstable-2025-11-27, fix build#476538
StarryReverie wants to merge 1 commit into
NixOS:masterfrom
StarryReverie:fix-python314-bson

Conversation

@StarryReverie

@StarryReverie StarryReverie commented Jan 3, 2026

Copy link
Copy Markdown
Contributor

Tracks #475732

The latest stable release of bson was on May 26, 2020, causing incompatibility with Python 3.14. The upstream repository contains some commits which fix those issues, without largely changing the functionalities. So I think bumping the package to a newer version makes sense.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci
nixpkgs-ci Bot requested a review from fabaff January 3, 2026 09:39
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 6.topic: python Python is a high-level, general-purpose programming language. labels Jan 3, 2026
@StarryReverie

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 476538
Commit: 66cdfb20d9a66372c991c1eb78a470d585f86cb5 (subsequent changes)
Merge: 237e39d2f12c0db0c8d620d66a9460c59dcf38a9

Logs: https://github.com/StarryReverie/nixpkgs-review-gha/actions/runs/20675935879


x86_64-linux

❌ 2 packages failed to build:
  • python314Packages.django-q2
  • python314Packages.django-q2.dist
✅ 16 packages built:
  • dmarc-metrics-exporter
  • dmarc-metrics-exporter.dist
  • mailman-web (mailmanPackages.web)
  • mailman-web.dist (mailmanPackages.web.dist)
  • mailmanPackages.hyperkitty
  • mailmanPackages.hyperkitty.dist
  • python313Packages.bson
  • python313Packages.bson.dist
  • python313Packages.django-q2
  • python313Packages.django-q2.dist
  • python313Packages.pymarshal
  • python313Packages.pymarshal.dist
  • python314Packages.bson
  • python314Packages.bson.dist
  • python314Packages.pymarshal
  • python314Packages.pymarshal.dist

Error logs: `x86_64-linux`
python314Packages.django-q2
django_q/tests/test_scheduler.py::test_scheduler_daylight_saving_time_daily
  /nix/store/z3i2r010mhzfvvk8yqrzql2jh4igkph9-python3.14-django-5.2.9/lib/python3.14/site-packages/django/db/models/fields/__init__.py:1671: RuntimeWarning: DateTimeField Schedule.next_run received a naive datetime (2021-03-27 01:00:00) while time zone support is active.
    warnings.warn(

django_q/tests/test_scheduler.py::test_scheduler_daylight_saving_time_daily
/nix/store/z3i2r010mhzfvvk8yqrzql2jh4igkph9-python3.14-django-5.2.9/lib/python3.14/site-packages/django/db/models/fields/init.py:1671: RuntimeWarning: DateTimeField Schedule.next_run received a naive datetime (2021-10-29 01:00:00) while time zone support is active.
warnings.warn(

django_q/tests/test_scheduler.py::test_scheduler_atomic_must_specify_the_write_db
django_q/tests/test_scheduler.py::test_scheduler_atomic_must_specify_the_database_based_on_router_redirection
/nix/store/z3i2r010mhzfvvk8yqrzql2jh4igkph9-python3.14-django-5.2.9/lib/python3.14/site-packages/django/test/utils.py:453: UserWarning: Overriding setting DATABASES can lead to unexpected behavior.
with self as context:

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED django_q/tests/test_cluster.py::test_recycle - assert 0 == 1

  • where 0 = <django_q.cluster.Sentinel object at 0x7ffff378fe50>.reincarnations
    FAILED django_q/tests/test_cluster.py::test_max_rss - assert 0 == 1
  • where 0 = <django_q.cluster.Sentinel object at 0x7ffff074c500>.reincarnations
    = 2 failed, 45 passed, 2 skipped, 1 deselected, 5 warnings in 74.88s (0:01:14) =

aarch64-linux

❌ 2 packages failed to build:
  • python314Packages.django-q2
  • python314Packages.django-q2.dist
✅ 16 packages built:
  • dmarc-metrics-exporter
  • dmarc-metrics-exporter.dist
  • mailman-web (mailmanPackages.web)
  • mailman-web.dist (mailmanPackages.web.dist)
  • mailmanPackages.hyperkitty
  • mailmanPackages.hyperkitty.dist
  • python313Packages.bson
  • python313Packages.bson.dist
  • python313Packages.django-q2
  • python313Packages.django-q2.dist
  • python313Packages.pymarshal
  • python313Packages.pymarshal.dist
  • python314Packages.bson
  • python314Packages.bson.dist
  • python314Packages.pymarshal
  • python314Packages.pymarshal.dist

Error logs: `aarch64-linux`
python314Packages.django-q2
django_q/tests/test_scheduler.py::test_scheduler_daylight_saving_time_daily
  /nix/store/km5z00rr5zf5v4nm7pa1ywr91p388fpq-python3.14-django-5.2.9/lib/python3.14/site-packages/django/db/models/fields/__init__.py:1671: RuntimeWarning: DateTimeField Schedule.next_run received a naive datetime (2021-03-27 01:00:00) while time zone support is active.
    warnings.warn(

django_q/tests/test_scheduler.py::test_scheduler_daylight_saving_time_daily
/nix/store/km5z00rr5zf5v4nm7pa1ywr91p388fpq-python3.14-django-5.2.9/lib/python3.14/site-packages/django/db/models/fields/init.py:1671: RuntimeWarning: DateTimeField Schedule.next_run received a naive datetime (2021-10-29 01:00:00) while time zone support is active.
warnings.warn(

django_q/tests/test_scheduler.py::test_scheduler_atomic_must_specify_the_write_db
django_q/tests/test_scheduler.py::test_scheduler_atomic_must_specify_the_database_based_on_router_redirection
/nix/store/km5z00rr5zf5v4nm7pa1ywr91p388fpq-python3.14-django-5.2.9/lib/python3.14/site-packages/django/test/utils.py:453: UserWarning: Overriding setting DATABASES can lead to unexpected behavior.
with self as context:

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED django_q/tests/test_cluster.py::test_recycle - assert 0 == 1

  • where 0 = <django_q.cluster.Sentinel object at 0xfffff3157b50>.reincarnations
    FAILED django_q/tests/test_cluster.py::test_max_rss - assert 0 == 1
  • where 0 = <django_q.cluster.Sentinel object at 0xfffff3084500>.reincarnations
    = 2 failed, 45 passed, 2 skipped, 1 deselected, 5 warnings in 68.92s (0:01:08) =

@StarryReverie

StarryReverie commented Jan 3, 2026

Copy link
Copy Markdown
Contributor Author

I think that the build failure of python314Packages.django-q2 was probably not relevant to bson's update, as its counterpart python313Packages.django-q2 was built successfully. Instead, it might be caused by some changes introduced by Python 3.14, though it was not discovered until I managed to fix the build failure of bson, since django-q2 depends on bson.

As for why I didn't run nixpkgs-review-gha for darwin platforms, the CI stuck at the check phase of python314Packages.django-q2, complaining about python3.14-django-q2> Could not connect to Valkey at /nix/build/nix-19096-376180273/run/redis.sock: No such file or directory. I didn't know why this happened. Logs can be found here: https://github.com/StarryReverie/nixpkgs-review-gha/actions/runs/20675527979/job/59363251864.

@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/6267

@StarryReverie
StarryReverie deleted the fix-python314-bson branch March 3, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants