1{ lib 2, buildPythonPackage 3, configparser 4, fetchFromGitHub 5, pip 6, pytest-mock 7, pytestCheckHook 8, python3-openid 9, pythonOlder 10, semantic-version 11, toml 12}: 13 14buildPythonPackage rec { 15 pname = "liccheck"; 16 version = "0.9.2"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "dhatim"; 23 repo = "python-license-check"; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-2WJw5TVMjOr+GX4YV0nssOtQeYvDHBLnlWquJQWPL9I="; 26 }; 27 28 propagatedBuildInputs = [ 29 configparser 30 semantic-version 31 toml 32 ]; 33 34 nativeCheckInputs = [ 35 pip 36 pytest-mock 37 pytestCheckHook 38 python3-openid 39 ]; 40 41 pythonImportsCheck = [ 42 "liccheck" 43 ]; 44 45 meta = with lib; { 46 description = "Check python packages from requirement.txt and report issues"; 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}