From ad026a9d4e850fef0003e913aedeb7509c305c22 Mon Sep 17 00:00:00 2001 From: octodi Date: Sun, 1 Oct 2023 15:29:21 +0530 Subject: [PATCH] arjun: init at 2.2.1 --- maintainers/maintainer-list.nix | 7 +++++ pkgs/by-name/ar/arjun/package.nix | 43 +++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 pkgs/by-name/ar/arjun/package.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 1a5642144d5c..068b1ad3d798 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -12943,6 +12943,13 @@ fingerprint = "939E F8A5 CED8 7F50 5BB5 B2D0 24BC 2738 5F70 234F"; }]; }; + octodi = { + name = "octodi"; + email = "octodi@proton.me"; + matrix = "@octodi:matrix.org"; + github = "octodi"; + githubId = 127038896; + }; oddlama = { email = "oddlama@oddlama.org"; github = "oddlama"; diff --git a/pkgs/by-name/ar/arjun/package.nix b/pkgs/by-name/ar/arjun/package.nix new file mode 100644 index 000000000000..bd98e1c1cb33 --- /dev/null +++ b/pkgs/by-name/ar/arjun/package.nix @@ -0,0 +1,43 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "arjun"; + version = "2.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "s0md3v"; + repo = "Arjun"; + rev = "refs/tags/${version}"; + hash = "sha256-YxfUlD7aBwoYYsZE0zTZxoXg1TgU2yT1V+mglmsXtlo="; + }; + + nativeBuildInputs = with python3.pkgs; [ + setuptools + wheel + ]; + + propagatedBuildInputs = with python3.pkgs; [ + requests + dicttoxml + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "arjun" + ]; + + meta = with lib; { + description = "HTTP parameter discovery suite"; + homepage = "https://github.com/s0md3v/Arjun"; + changelog = "https://github.com/s0md3v/Arjun/blob/${version}/CHANGELOG.md"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ octodi ]; + mainProgram = "arjun"; + }; +}