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 setuptools,
13 toml,
14}:
15
16buildPythonPackage rec {
17 pname = "liccheck";
18 version = "0.9.3";
19 pyproject = true;
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchFromGitHub {
24 owner = "dhatim";
25 repo = "python-license-check";
26 tag = version;
27 hash = "sha256-ohq3ZsbZcyqhwmvaVF/+mo7lNde5gjbz8pwhzHi3SPY=";
28 };
29
30 build-system = [ setuptools ];
31
32 dependencies = [
33 configparser
34 semantic-version
35 toml
36 ];
37
38 nativeCheckInputs = [
39 pip
40 pytest-mock
41 pytestCheckHook
42 python3-openid
43 ];
44
45 pythonImportsCheck = [ "liccheck" ];
46
47 meta = with lib; {
48 description = "Check python packages from requirement.txt and report issues";
49 homepage = "https://github.com/dhatim/python-license-check";
50 changelog = "https://github.com/dhatim/python-license-check/releases/tag/${src.tag}";
51 license = licenses.asl20;
52 maintainers = with maintainers; [ fab ];
53 mainProgram = "liccheck";
54 };
55}