diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-04-22 11:47:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 11:47:47 +0200 |
commit | 0393164e4423c47fc142865e02057e8db03453ee (patch) | |
tree | 63eaa5de7ccb51a6b89e0d4e00da57dbd9d03b9a | |
parent | e39242130ff0b7f6822cfca6b3bae75a5ae27893 (diff) | |
parent | 1070ddbae4c2198e14b9644785381bfc8b3af5ed (diff) | |
download | nixpkgs-0393164e4423c47fc142865e02057e8db03453ee.tar nixpkgs-0393164e4423c47fc142865e02057e8db03453ee.tar.gz nixpkgs-0393164e4423c47fc142865e02057e8db03453ee.tar.bz2 nixpkgs-0393164e4423c47fc142865e02057e8db03453ee.tar.lz nixpkgs-0393164e4423c47fc142865e02057e8db03453ee.tar.xz nixpkgs-0393164e4423c47fc142865e02057e8db03453ee.tar.zst nixpkgs-0393164e4423c47fc142865e02057e8db03453ee.zip |
Merge pull request #119214 from fabaff/karton-dashboard
python3Packages.karton-dashboard: init at 1.1.0
-rw-r--r-- | pkgs/development/python-modules/karton-dashboard/default.nix | 43 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/karton-dashboard/default.nix b/pkgs/development/python-modules/karton-dashboard/default.nix new file mode 100644 index 00000000000..c82cb895782 --- /dev/null +++ b/pkgs/development/python-modules/karton-dashboard/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, flask +, karton-core +, mistune +, prometheus_client +}: + +buildPythonPackage rec { + pname = "karton-dashboard"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "CERT-Polska"; + repo = pname; + rev = "v${version}"; + sha256 = "101qmx6nmiim0vrz2ldk973ns498hnxla1xy7nys9kh9wijg4msk"; + }; + + propagatedBuildInputs = [ + flask + karton-core + mistune + prometheus_client + ]; + + postPatch = '' + substituteInPlace requirements.txt \ + --replace "Flask==1.1.1" "Flask" \ + --replace "karton-core==4.1.0" "karton-core" + ''; + + # 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f22df1c35d9..8d4b54299de 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3701,6 +3701,8 @@ in { karton-core = callPackage ../development/python-modules/karton-core { }; + karton-dashboard = callPackage ../development/python-modules/karton-dashboard { }; + karton-mwdb-reporter = callPackage ../development/python-modules/karton-mwdb-reporter { }; karton-yaramatcher = callPackage ../development/python-modules/karton-yaramatcher { }; |