2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flask,
|
|
|
|
karton-core,
|
|
|
|
mistune,
|
|
|
|
networkx,
|
|
|
|
prometheus-client,
|
|
|
|
pythonOlder,
|
|
|
|
pythonRelaxDepsHook,
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "karton-dashboard";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.6.0";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "setuptools";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CERT-Polska";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-VzBC7IATF8QBtTXMv4vmorAzBlImEsayjenQ2Uz5jIo=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"Flask"
|
|
|
|
"mistune"
|
|
|
|
"networkx"
|
|
|
|
"prometheus-client"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
karton-core
|
|
|
|
mistune
|
2022-08-12 12:06:08 +00:00
|
|
|
networkx
|
2021-08-27 14:25:00 +00:00
|
|
|
prometheus-client
|
2021-04-25 03:57:28 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests. pythonImportsCheck requires MinIO configuration
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Web application that allows for Karton task and queue introspection";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "karton-dashboard";
|
2021-04-25 03:57:28 +00:00
|
|
|
homepage = "https://github.com/CERT-Polska/karton-dashboard";
|
2023-02-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/CERT-Polska/karton-dashboard/releases/tag/v${version}";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|