nixpkgs/pkgs/tools/security/inql/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
925 B
Nix
Raw Normal View History

2021-12-11 13:01:47 +00:00
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "inql";
2022-11-28 19:05:45 +00:00
version = "4.0.6";
2021-12-11 13:01:47 +00:00
src = fetchFromGitHub {
owner = "doyensec";
repo = pname;
2022-11-28 19:05:45 +00:00
rev = "refs/tags/v${version}";
2023-05-08 18:24:51 +00:00
hash = "sha256-DFGJHqdrCmOZn8GdY5SZ1PrOhuIsMLoK+2Fry9WkRiY=";
2021-12-11 13:01:47 +00:00
};
2023-05-08 18:24:51 +00:00
postPatch = ''
# To set the version a full git checkout would be needed
substituteInPlace setup.py \
--replace "version=version()," "version='${version}',"
'';
2021-12-11 13:01:47 +00:00
propagatedBuildInputs = with python3.pkgs; [
stickytape
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"inql"
];
meta = with lib; {
description = "Security testing tool for GraphQL";
homepage = "https://github.com/doyensec/inql";
2023-05-08 18:24:51 +00:00
changelog = "https://github.com/doyensec/inql/releases/tag/v${version}";
2021-12-11 13:01:47 +00:00
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}