about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/karton-mwdb-reporter/default.nix
blob: f976e3fedba3a1d6b1c6e6853b558e9d8bfd1581 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, karton-core
, mwdblib
, pythonOlder
}:

buildPythonPackage rec {
  pname = "karton-mwdb-reporter";
  version = "unstable-2022-02-22";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "CERT-Polska";
    repo = pname;
    rev = "1afa32251b4826eac4386596b4a20f295699faec";
    hash = "sha256-dbtIjWSNIRMccrGJspZMOBUD2EzuvW7xESlEwiOhKfQ=";
  };

  propagatedBuildInputs = [
    karton-core
    mwdblib
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [
    "karton.mwdb_reporter"
  ];

  meta = with lib; {
    description = "Karton service that uploads analyzed artifacts and metadata to MWDB Core";
    homepage = "https://github.com/CERT-Polska/karton-mwdb-reporter";
    license = with licenses; [ bsd3 ];
    maintainers = with maintainers; [ fab ];
  };
}