depot/third_party/nixpkgs/pkgs/development/python-modules/karton-dashboard/default.nix
Default email 58849dfc4f Project import generated by Copybara.
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
2021-08-27 16:25:00 +02:00

43 lines
973 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flask
, karton-core
, mistune
, prometheus-client
}:
buildPythonPackage rec {
pname = "karton-dashboard";
version = "1.2.0";
src = fetchFromGitHub {
owner = "CERT-Polska";
repo = pname;
rev = "v${version}";
sha256 = "0qygv9lkd1jad5b4l0zz6hsi7m8q0fmpwaa6hpp7p9x6ql7gnyl8";
};
propagatedBuildInputs = [
flask
karton-core
mistune
prometheus-client
];
postPatch = ''
substituteInPlace requirements.txt \
--replace "Flask==1.1.1" "Flask" \
--replace "prometheus-client==0.9.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 ];
};
}