about summary refs log tree commit diff
path: root/pkgs/development/python-modules/liccheck/default.nix
blob: fc2f1945888cbc0692da7ee93f19337e2538207f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ lib
, buildPythonPackage
, configparser
, fetchFromGitHub
, pip
, pytest-mock
, pytestCheckHook
, python3-openid
, pythonOlder
, semantic-version
, toml
}:

buildPythonPackage rec {
  pname = "liccheck";
  version = "0.9.2";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "dhatim";
    repo = "python-license-check";
    rev = "refs/tags/${version}";
    hash = "sha256-2WJw5TVMjOr+GX4YV0nssOtQeYvDHBLnlWquJQWPL9I=";
  };

  propagatedBuildInputs = [
    configparser
    semantic-version
    toml
  ];

  nativeCheckInputs = [
    pip
    pytest-mock
    pytestCheckHook
    python3-openid
  ];

  pythonImportsCheck = [
    "liccheck"
  ];

  meta = with lib; {
    description = "Check python packages from requirement.txt and report issues";
    mainProgram = "liccheck";
    homepage = "https://github.com/dhatim/python-license-check";
    changelog = "https://github.com/dhatim/python-license-check/releases/tag/${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };
}