8000 Detect python version constraints · Issue #64 · nix-community/nix-init · GitHub
[go: up one dir, main page]

Skip to content

Detect python version constraints #64

Open

Description

@figsoda
  • pyproject project.requires-python
  • poetry tools.poetry.dependencies.python
  • pypi info.requires_python
  • pep 508 python_version

Activity

  1. eveeifyeve commented on Feb 14, 2026

    @eveeifyeve
    Member

    How would this work? Because I am not too sure if this is an issue to work on.

  2. figsoda commented on Feb 14, 2026

    @figsoda
    MemberAuthor

    It would look something like this: https://github.com/NixOS/nixpkgs/blob/a67c7f6de9dddb53101ceb2157b315f9551b3ddb/pkgs/development/python-modules/paddlepaddle/default.nix#L68

    Here are some more examples: https://github.com/search?q=repo%3ANixOS%2Fnixpkgs+%2Fdisabled+%3D+python[A-Z].*%2F&type=code

    It's been a while since I opened the issue, and I'm not sure if we actually want this, since it would be hard to maintain as automated tooling like nix-update wouldn't be able to update it, and it doesn't have much of a benefit unless the builds are actually failing for the package sets we are recursing into, which is just 3.13 and 3.14 currently.

    Would love to hear some opinions from the python team: @mweinelt @natsukium. Should nix-init emit disabled = by default based on the python version constraints found?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0