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.1";
13
14 src = fetchFromGitHub {
15 owner = "CERT-Polska";
16 repo = pname;
17 rev = "v${version}";
18 sha256 = "sha256-C1wtpHyuTlNS6Se1rR0RGUl3xht4aphAtddKlIsOAkI=";
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 --replace "prometheus-client==0.9.0" "prometheus-client"
32 '';
33
34 # Project has no tests. pythonImportsCheck requires MinIO configuration
35 doCheck = false;
36
37 meta = with lib; {
38 description = "Web application that allows for Karton task and queue introspection";
39 homepage = "https://github.com/CERT-Polska/karton-dashboard";
40 license = with licenses; [ bsd3 ];
41 maintainers = with maintainers; [ fab ];
42 };
43}