nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 47 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flask 5, karton-core 6, mistune 7, prometheus-client 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "karton-dashboard"; 13 version = "1.2.1"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "CERT-Polska"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "sha256-C1wtpHyuTlNS6Se1rR0RGUl3xht4aphAtddKlIsOAkI="; 23 }; 24 25 propagatedBuildInputs = [ 26 flask 27 karton-core 28 mistune 29 prometheus-client 30 ]; 31 32 postPatch = '' 33 substituteInPlace requirements.txt \ 34 --replace "Flask==1.1.1" "Flask" \ 35 --replace "prometheus_client==0.11.0" "prometheus_client" 36 ''; 37 38 # Project has no tests. pythonImportsCheck requires MinIO configuration 39 doCheck = false; 40 41 meta = with lib; { 42 description = "Web application that allows for Karton task and queue introspection"; 43 homepage = "https://github.com/CERT-Polska/karton-dashboard"; 44 license = with licenses; [ bsd3 ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}