Skip to content

Python: wrapPythonPrograms should not add (propagated) build inputs to wrappers #24128

@edolstra

Description

@edolstra

Issue description

This causes undesired runtime dependencies. For example, system-config-printer has a runtime dependency on curl.dev, because pycurl has curl as a propagated build input:

$ nix-build -A system-config-printer
/nix/store/m327x6b9indnxr9a1jmp6rzx9qjiccmq-system-config-printer-1.5.7

$ nix-store -q --references ./result | grep dev
/nix/store/915rpb4ikll4nbl5y7kihdg7c445jzgb-curl-7.53.1-dev

In general, wrapper generators should not arbitrarily inject all build-time dependencies into the wrapper script.

Technical details

  • Nixpkgs version: NixOS 17.09 acb7958

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: closure sizeThe final size of a derivation, including its dependencies6.topic: pythonPython is a high-level, general-purpose programming language.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions