about summary refs log tree commit diff
path: root/pkgs/by-name/pa/packj/package.nix
blob: 5e859823efdf1c58fb4a1d70a186f1ffffda4b8c (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
54
55
56
57
58
59
60
61
62
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "packj";
  version = "0.15-beta";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ossillate-inc";
    repo = "packj";
    rev = "refs/tags/v${version}";
    hash = "sha256-OWcJE2Gtjgoj9bCGZcHDfAFLWRP4wdENeJAnILMdUXY=";
  };

  preBuild = ''
    export HOME=$(mktemp -d)
  '';

  nativeBuildInputs = with python3.pkgs; [
    setuptools
    wheel
  ];

  propagatedBuildInputs = with python3.pkgs; [
    asttokens
    colorama
    django
    dnspython
    esprima
    func-timeout
    github3-py
    gitpython
    networkx
    protobuf
    pyisemail
    python-dateutil
    python-gitlab
    python-magic
    pytz
    pyyaml
    rarfile
    requests
    six
    tldextract
  ];

  pythonImportsCheck = [
    "packj"
  ];

  meta = with lib; {
    description = "Tool to detect malicious/vulnerable open-source dependencies";
    homepage = "https://github.com/ossillate-inc/packj";
    changelog = "https://github.com/ossillate-inc/packj/releases/tag/v${version}";
    license = licenses.agpl3Only;
    maintainers = with maintainers; [ fab ];
    mainProgram = "packj";
  };
}