nixpkgs/pkgs/tools/security/graphqlmap/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

37 lines
786 B
Nix

{ 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";
mainProgram = "graphqlmap";
homepage = "https://github.com/swisskyrepo/GraphQLmap";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}