Skip to content

Modify local clone of Nixpkgs, for upstreaming packages #50

@catern

Description

@catern

First off, awesome project, this makes it much easier to make Python packages which are upstreamable for Nixpkgs! I just used pynixify to generate and make a PR for NixOS/nixpkgs#97155 and it worked great!

I think things could be even easier with a few extra features - maybe in a different mode or something.

  1. Put any new packages in pkgs/development/python-modules/
  2. Modify python-packages.nix to add the new packages

Those are the main things, but as a stretch goal, it would be also be cool if there were options to:

  1. List the current user as maintainer in the meta section of the packages (maybe could even autodetect from username?)
  2. Don't add doCheck = false; since I'll always want to try building the package with tests at least once
  3. Autodetect the license from PyPI and fill in that section.

I think if pynixify had 1 and 2, pynixify could be endorsed in the manual as the encouraged way to create a new Python package for Nixpkgs. It would cut down on a lot of PR review effort spent on badly-formatted manually created trivial packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions