nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flask,
6 karton-core,
7 mistune,
8 networkx,
9 prometheus-client,
10}:
11
12buildPythonPackage rec {
13 pname = "karton-dashboard";
14 version = "1.6.0";
15 format = "setuptools";
16
17 src = fetchFromGitHub {
18 owner = "CERT-Polska";
19 repo = "karton-dashboard";
20 tag = "v${version}";
21 hash = "sha256-VzBC7IATF8QBtTXMv4vmorAzBlImEsayjenQ2Uz5jIo=";
22 };
23
24 pythonRelaxDeps = [
25 "Flask"
26 "mistune"
27 "networkx"
28 "prometheus-client"
29 ];
30
31 propagatedBuildInputs = [
32 flask
33 karton-core
34 mistune
35 networkx
36 prometheus-client
37 ];
38
39 # Project has no tests. pythonImportsCheck requires MinIO configuration
40 doCheck = false;
41
42 meta = {
43 description = "Web application that allows for Karton task and queue introspection";
44 mainProgram = "karton-dashboard";
45 homepage = "https://github.com/CERT-Polska/karton-dashboard";
46 changelog = "https://github.com/CERT-Polska/karton-dashboard/releases/tag/v${version}";
47 license = with lib.licenses; [ bsd3 ];
48 maintainers = with lib.maintainers; [ fab ];
49 };
50}