diff --git a/pkgs/tools/security/graphqlmap/default.nix b/pkgs/tools/security/graphqlmap/default.nix new file mode 100644 index 000000000000..84b72d3b6a16 --- /dev/null +++ b/pkgs/tools/security/graphqlmap/default.nix @@ -0,0 +1,35 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "graphqlmap"; + version = "unstable-2022-01-17"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "swisskyrepo"; + repo = "GraphQLmap"; + rev = "98997bd7cf647aac7378b72913241060464749b1"; + hash = "sha256-lGnhNwtDc8KoPlwJ1p2FYq0NQ8PhSR3HgtluU7uxa/c="; + }; + + propagatedBuildInputs = with python3.pkgs; [ + requests + ]; + + # Tests are not available + doCheck = false; + + pythonImportsCheck = [ + "graphqlmap" + ]; + + meta = with lib; { + description = "Tool to interact with a GraphQL endpoint"; + homepage = "https://github.com/swisskyrepo/GraphQLmap"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 618c7c1fcc24..637bdec14cd0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14344,6 +14344,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; + graphqlmap = callPackage ../tools/security/graphqlmap { }; + groovy = callPackage ../development/interpreters/groovy { }; inherit (callPackages ../applications/networking/cluster/hadoop { })