1{ 2 lib, 3 buildPythonPackage, 4 configparser, 5 fetchFromGitHub, 6 pip, 7 pytest-mock, 8 pytestCheckHook, 9 python3-openid, 10 pythonOlder, 11 semantic-version, 12 toml, 13}: 14 15buildPythonPackage rec { 16 pname = "liccheck"; 17 version = "0.9.2"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "dhatim"; 24 repo = "python-license-check"; 25 tag = version; 26 hash = "sha256-2WJw5TVMjOr+GX4YV0nssOtQeYvDHBLnlWquJQWPL9I="; 27 }; 28 29 propagatedBuildInputs = [ 30 configparser 31 semantic-version 32 toml 33 ]; 34 35 nativeCheckInputs = [ 36 pip 37 pytest-mock 38 pytestCheckHook 39 python3-openid 40 ]; 41 42 pythonImportsCheck = [ "liccheck" ]; 43 44 meta = with lib; { 45 description = "Check python packages from requirement.txt and report issues"; 46 mainProgram = "liccheck"; 47 homepage = "https://github.com/dhatim/python-license-check"; 48 changelog = "https://github.com/dhatim/python-license-check/releases/tag/${version}"; 49 license = licenses.asl20; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}