Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit 41b545c

Browse files
committed
not pointing to correct attr path for licenses
1 parent f30ea24 commit 41b545c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/pypi2nix/stage3.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
doCheck = commonDoCheck;
6969
buildInputs = commonBuildInputs;
7070
propagatedBuildInputs = %(propagatedBuildInputs)s;
71-
meta = with pkgs.stdenv; {
71+
meta = with pkgs.stdenv.lib; {
7272
homepage = "%(homepage)s";
7373
license = %(license)s;
7474
description = "%(description)s";
@@ -89,19 +89,19 @@
8989
def find_license(item):
9090
license = item.get('license')
9191
if license == 'ZPL 2.1':
92-
license = "lib.zpt21"
92+
license = "licenses.zpt21"
9393
elif license in ['MIT', 'MIT License']:
94-
license = "lib.mit"
94+
license = "licenses.mit"
9595
elif license in ['BSD', 'BSD License', 'BSD-like',
9696
'BSD or Apache License, Version 2.0'] or \
9797
license.startswith('BSD -'):
98-
license = "lib.bsdOriginal"
98+
license = "licenses.bsdOriginal"
9999
elif license in ['Apache 2.0', 'Apache License 2.0']:
100-
license = "lib.asl20"
100+
license = "licenses.asl20"
101101
elif license in ['GNU Lesser General Public License (LGPL), Version 3']:
102-
license = "lib.lgpl3"
102+
license = "licenses.lgpl3"
103103
elif license in ['Python Software Foundation License']:
104-
license = "lib.psfl"
104+
license = "licenses.psfl"
105105
elif license is None:
106106
license = '""'
107107
else:

0 commit comments

Comments
 (0)