Files
nixpkgs/pkgs/development/python-modules/karton-dashboard/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flask,
karton-core,
mistune,
networkx,
prometheus-client,
pythonOlder,
}:
buildPythonPackage rec {
pname = "karton-dashboard";
version = "1.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = "karton-dashboard";
tag = "v${version}";
hash = "sha256-VzBC7IATF8QBtTXMv4vmorAzBlImEsayjenQ2Uz5jIo=";
};
pythonRelaxDeps = [
"Flask"
"mistune"
"networkx"
"prometheus-client"
];
propagatedBuildInputs = [
flask
karton-core
mistune
networkx
prometheus-client
];
# Project has no tests. pythonImportsCheck requires MinIO configuration
doCheck = false;
meta = {
description = "Web application that allows for Karton task and queue introspection";
mainProgram = "karton-dashboard";
homepage = "https://github.com/CERT-Polska/karton-dashboard";
changelog = "https://github.com/CERT-Polska/karton-dashboard/releases/tag/v${version}";
license = with lib.licenses; [ bsd3 ];
maintainers = with lib.maintainers; [ fab ];
};
}