2021-04-12 08:26:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, flask
|
|
|
|
, karton-core
|
|
|
|
, mistune
|
|
|
|
, prometheus_client
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "karton-dashboard";
|
2021-05-19 11:00:55 +00:00
|
|
|
version = "1.2.0";
|
2021-04-12 08:26:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CERT-Polska";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-05-19 11:00:55 +00:00
|
|
|
sha256 = "0qygv9lkd1jad5b4l0zz6hsi7m8q0fmpwaa6hpp7p9x6ql7gnyl8";
|
2021-04-12 08:26:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
karton-core
|
|
|
|
mistune
|
|
|
|
prometheus_client
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
2021-06-20 18:44:14 +00:00
|
|
|
--replace "Flask==1.1.1" "Flask" \
|
|
|
|
--replace "prometheus_client==0.9.0" "prometheus-client"
|
2021-04-12 08:26:05 +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";
|
|
|
|
homepage = "https://github.com/CERT-Polska/karton-dashboard";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|