Skip to content

Commit

Permalink
Extend check 'unclear-gpl' to python derivations as well
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcgibbo committed Jan 26, 2021
1 parent d0aa5aa commit 858178a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions overlays/unclear-gpl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
final: prev:
let
inherit (prev) lib;
inherit (import ../lib { inherit lib; }) checkMkDerivationFor;
inherit (import ../lib { inherit lib; }) checkFor;

licenses = [
"agpl3"
Expand Down Expand Up @@ -37,4 +37,4 @@ let
);

in
checkMkDerivationFor checkDerivation attrs final prev
checkFor checkDerivation attrs final prev
1 change: 1 addition & 0 deletions run-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ def __iter__(self):
'lgpl2',
'lgpl21',
'lgpl3',
'lgpl3-python',
],
[
'single-nonmatching-license',
Expand Down
2 changes: 2 additions & 0 deletions tests/unclear-gpl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
lgpl2 = pkgs.callPackage ./lgpl2.nix { };
lgpl21 = pkgs.callPackage ./lgpl21.nix { };
lgpl3 = pkgs.callPackage ./lgpl3.nix { };
lgpl3-python = pkgs.python3.pkgs.callPackage ./lgpl3-python.nix { };


# negative cases
single-nonmatching-license = pkgs.callPackage ./single-nonmatching-license.nix { };
Expand Down
11 changes: 11 additions & 0 deletions tests/unclear-gpl/lgpl3-python.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ lib
, buildPythonPackage
}:

buildPythonPackage {
pname = "unclear-gpl-lgpl3-python";

src = ../fixtures/make;

meta.license = [ lib.licenses.lgpl3 ];
}

0 comments on commit 858178a

Please sign in to comment.