From d7376bc88ee310a1b4ce8781fab34b1830a117e2 Mon Sep 17 00:00:00 2001 From: happysalada Date: Tue, 21 Nov 2023 09:36:26 +0100 Subject: [PATCH] fangfrisch: init at 1.6.1 --- pkgs/by-name/fa/fangfrisch/package.nix | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/fa/fangfrisch/package.nix diff --git a/pkgs/by-name/fa/fangfrisch/package.nix b/pkgs/by-name/fa/fangfrisch/package.nix new file mode 100644 index 000000000000..f3a6c466ac09 --- /dev/null +++ b/pkgs/by-name/fa/fangfrisch/package.nix @@ -0,0 +1,40 @@ +{ lib +, python3 +, fetchFromGitHub +}: +let + version = "1.6.1"; +in +python3.pkgs.buildPythonApplication { + pname = "fangfrisch"; + inherit version; + pyproject = true; + + src = fetchFromGitHub { + owner = "rseichter"; + repo = "fangfrisch"; + rev = version; + hash = "sha256-yXXzwN0BI//NqpNNmKIhwFv3hDwNZLl1K81hUD/tCrQ="; + }; + + nativeBuildInputs = [ + python3.pkgs.setuptools + python3.pkgs.wheel + ]; + + propagatedBuildInputs = with python3.pkgs; [ + requests + sqlalchemy + ]; + + pythonImportsCheck = [ "fangfrisch" ]; + + meta = with lib; { + description = "Update and verify unofficial Clam Anti-Virus signatures"; + homepage = "https://github.com/rseichter/fangfrisch"; + changelog = "https://github.com/rseichter/fangfrisch/blob/${version}/CHANGELOG.rst"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ happysalada ]; + mainProgram = "fangfrisch"; + }; +}