From 06c63c21188bbd3ec1cea2efacd37e79dc710e0f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 16 Apr 2021 00:15:38 +0200 Subject: [PATCH] python3Packages.karton-mwdb-reporter: init at 1.0.0 --- .../karton-mwdb-reporter/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/karton-mwdb-reporter/default.nix diff --git a/pkgs/development/python-modules/karton-mwdb-reporter/default.nix b/pkgs/development/python-modules/karton-mwdb-reporter/default.nix new file mode 100644 index 000000000000..9f4c1ee67099 --- /dev/null +++ b/pkgs/development/python-modules/karton-mwdb-reporter/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7b3941bd6a86..07516ce1b2bd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3689,6 +3689,8 @@ in { 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 { }; kazoo = callPackage ../development/python-modules/kazoo { };