1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flask,
|
|
karton-core,
|
|
mistune,
|
|
networkx,
|
|
prometheus-client,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "karton-dashboard";
|
|
version = "1.6.0";
|
|
format = "setuptools";
|
|
|
|
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 ];
|
|
};
|
|
}
|