Merge pull request #119214 from fabaff/karton-dashboard

python3Packages.karton-dashboard: init at 1.1.0
This commit is contained in:
Sandro 2021-04-22 11:47:47 +02:00 committed by GitHub
commit 0393164e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -3701,6 +3701,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 { };