depot/third_party/nixpkgs/pkgs/development/python-modules/karton-dashboard/default.nix
Default email a425ba4985 Project import generated by Copybara.
GitOrigin-RevId: 5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3
2021-12-30 14:39:12 +01:00

47 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flask
, karton-core
, mistune
, prometheus-client
, pythonOlder
}:
buildPythonPackage rec {
pname = "karton-dashboard";
version = "1.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = pname;
rev = "v${version}";
sha256 = "sha256-C1wtpHyuTlNS6Se1rR0RGUl3xht4aphAtddKlIsOAkI=";
};
propagatedBuildInputs = [
flask
karton-core
mistune
prometheus-client
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "Flask==1.1.1" "Flask" \
--replace "prometheus_client==0.11.0" "prometheus_client"
'';
# Project has no tests. pythonImportsCheck requires MinIO configuration
doCheck = false;
meta = with lib; {
description = "Web application that allows for Karton task and queue introspection";
homepage = "https://github.com/CERT-Polska/karton-dashboard";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}