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