8000 License not found if located in LICENSES folder (REUSE compliance) · Issue #650 · nix-community/nix-init · GitHub
[go: up one dir, main page]

Skip to content

License not found if located in LICENSES folder (REUSE compliance) #650

Closed

Description

@bittner

I just tried nix-init on a Python project, and it works well except for the license detection.

Problem

When the project contains license(s) in a LICENSES folder nix-init is unable to find it.

Example

The pyclean project is a REUSE-compliant project.

The meta block created by nix-init looks like this:

  meta = {
    description = "Pure Python cross-platform pyclean. Clean up your Python bytecode";
    homepage = "https://github.com/bittner/pyclean";
    license = lib.licenses.unfree; # FIXME: nix-init did not find a license
    maintainers = with lib.maintainers; [ ];
    mainProgram = "pyclean";
  };

Background

The REUSE specification says:

Each License File MUST be placed in the LICENSES/ directory in the root of the Project.

When you run the reuse tool over your code base a LICENSES folder will be created and your project's license(s) are deposited there.

Activity

  1. figsoda commented on Jan 16, 2026

    @figsoda
    Member

    #672 should fix this, also added some extra heuristics to prefer gpl3Plus over gpl3Only depending on the file name, since the license texts are identical

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0