blob: ba18d02a1c5c3ead34bc0101b19f12bf11369db7 (
plain)
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
|
{
lib,
buildPythonPackage,
configparser,
fetchFromGitHub,
pip,
pytest-mock,
pytestCheckHook,
python3-openid,
semantic-version,
setuptools,
toml,
}:
buildPythonPackage rec {
pname = "liccheck";
version = "0.9.3";
pyproject = true;
src = fetchFromGitHub {
owner = "dhatim";
repo = "python-license-check";
tag = version;
hash = "sha256-ohq3ZsbZcyqhwmvaVF/+mo7lNde5gjbz8pwhzHi3SPY=";
};
build-system = [ setuptools ];
dependencies = [
configparser
semantic-version
toml
];
nativeCheckInputs = [
pip
pytest-mock
pytestCheckHook
python3-openid
];
pythonImportsCheck = [ "liccheck" ];
meta = {
description = "Check python packages from requirement.txt and report issues";
homepage = "https://github.com/dhatim/python-license-check";
changelog = "https://github.com/dhatim/python-license-check/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "liccheck";
};
}
|