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

Commit 3356a30

Browse files
committed
Improve license detection for MIT
1 parent 3167baa commit 3356a30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pypi2nix/stage2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ def find_license(item):
150150
if license in ['LGPL with exceptions or ZPL', 'ZPL 2.1']:
151151
license = "licenses.zpl21"
152152
elif license in ['MIT', 'MIT License',
153-
'MIT or Apache License, Version 2.0']:
153+
'MIT or Apache License, Version 2.0',
154+
'The MIT License'
155+
]:
154156
license = "licenses.mit"
155157
elif license in ['BSD', 'BSD License', 'BSD-like',
156158
'BSD or Apache License, Version 2.0'] or \

0 commit comments

Comments
 (0)