From 1070ddbae4c2198e14b9644785381bfc8b3af5ed Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 12 Apr 2021 10:26:05 +0200 Subject: [PATCH] python3Packages.karton-dashboard: init at 1.1.0 --- .../karton-dashboard/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/karton-dashboard/default.nix diff --git a/pkgs/development/python-modules/karton-dashboard/default.nix b/pkgs/development/python-modules/karton-dashboard/default.nix new file mode 100644 index 000000000000..c82cb8957826 --- /dev/null +++ b/pkgs/development/python-modules/karton-dashboard/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, flask +, karton-core +, mistune +, prometheus_client +}: + +buildPythonPackage rec { + pname = "karton-dashboard"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "CERT-Polska"; + repo = pname; + rev = "v${version}"; + sha256 = "101qmx6nmiim0vrz2ldk973ns498hnxla1xy7nys9kh9wijg4msk"; + }; + + propagatedBuildInputs = [ + flask + karton-core + mistune + prometheus_client + ]; + + postPatch = '' + substituteInPlace requirements.txt \ + --replace "Flask==1.1.1" "Flask" \ + --replace "karton-core==4.1.0" "karton-core" + ''; + + # Project has no tests. pythonImportsCheck requires MinIO configuration + doCheck = false; + + meta = with lib; { + description = "Web application that allows for Karton task and queue introspection"; + homepage = "https://github.com/CERT-Polska/karton-dashboard"; + 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 01219719acc6..75bb3dfcba01 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3695,6 +3695,8 @@ in { karton-core = callPackage ../development/python-modules/karton-core { }; + karton-dashboard = callPackage ../development/python-modules/karton-dashboard { }; + karton-mwdb-reporter = callPackage ../development/python-modules/karton-mwdb-reporter { }; karton-yaramatcher = callPackage ../development/python-modules/karton-yaramatcher { };