1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, flask
5, karton-core
6, mistune
7, prometheus_client
8}:
9
10buildPythonPackage rec {
11 pname = "karton-dashboard";
12 version = "1.2.0";
13
14 src = fetchFromGitHub {
15 owner = "CERT-Polska";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "0qygv9lkd1jad5b4l0zz6hsi7m8q0fmpwaa6hpp7p9x6ql7gnyl8";
19 };
20
21 propagatedBuildInputs = [
22 flask
23 karton-core
24 mistune
25 prometheus_client
26 ];
27
28 postPatch = ''
29 substituteInPlace requirements.txt \
30 --replace "Flask==1.1.1" "Flask"
31 '';
32
33 # Project has no tests. pythonImportsCheck requires MinIO configuration
34 doCheck = false;
35
36 meta = with lib; {
37 description = "Web application that allows for Karton task and queue introspection";
38 homepage = "https://github.com/CERT-Polska/karton-dashboard";
39 license = with licenses; [ bsd3 ];
40 maintainers = with maintainers; [ fab ];
41 };
42}