python3Packages.karton-mwdb-reporter: init at 1.0.0

This commit is contained in:
Fabian Affolter 2021-04-16 00:15:38 +02:00
parent d9f87b224f
commit 06c63c2118
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, chardet
, fetchFromGitHub
, karton-core
, mwdblib
, python
}:
buildPythonPackage rec {
pname = "karton-mwdb-reporter";
version = "1.0.0";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = pname;
rev = "v${version}";
sha256 = "0ks8jrc4v87q6zhwqg40w6xv2wfkzslmnfmsmmkfjj8mak8nk70f";
};
propagatedBuildInputs = [
karton-core
mwdblib
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "karton-core==4.0.4" "karton-core" \
--replace "mwdblib==3.3.1" "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 ];
};
}

View file

@ -3689,6 +3689,8 @@ in {
karton-core = callPackage ../development/python-modules/karton-core { }; karton-core = callPackage ../development/python-modules/karton-core { };
karton-mwdb-reporter = callPackage ../development/python-modules/karton-mwdb-reporter { };
karton-yaramatcher = callPackage ../development/python-modules/karton-yaramatcher { }; karton-yaramatcher = callPackage ../development/python-modules/karton-yaramatcher { };
kazoo = callPackage ../development/python-modules/kazoo { }; kazoo = callPackage ../development/python-modules/kazoo { };