nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 configparser,
5 fetchFromGitHub,
6 pip,
7 pytest-mock,
8 pytestCheckHook,
9 python3-openid,
10 semantic-version,
11 setuptools,
12 toml,
13}:
14
15buildPythonPackage rec {
16 pname = "liccheck";
17 version = "0.9.3";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "dhatim";
22 repo = "python-license-check";
23 tag = version;
24 hash = "sha256-ohq3ZsbZcyqhwmvaVF/+mo7lNde5gjbz8pwhzHi3SPY=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
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 = {
45 description = "Check python packages from requirement.txt and report issues";
46 homepage = "https://github.com/dhatim/python-license-check";
47 changelog = "https://github.com/dhatim/python-license-check/releases/tag/${src.tag}";
48 license = lib.licenses.asl20;
49 maintainers = with lib.maintainers; [ fab ];
50 mainProgram = "liccheck";
51 };
52}