Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1023 B
Nix
48 lines
1023 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "inql";
|
|
version = "4.0.6";
|
|
format = "pyproject";
|
|
src = fetchFromGitHub {
|
|
owner = "doyensec";
|
|
repo = "inql";
|
|
tag = "v${version}";
|
|
hash = "sha256-DFGJHqdrCmOZn8GdY5SZ1PrOhuIsMLoK+2Fry9WkRiY=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# To set the version a full git checkout would be needed
|
|
substituteInPlace setup.py \
|
|
--replace-fail "version=version()," "version='${version}',"
|
|
'';
|
|
|
|
build-system = with python3.pkgs; [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
stickytape
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"inql"
|
|
];
|
|
|
|
meta = {
|
|
description = "Security testing tool for GraphQL";
|
|
mainProgram = "inql";
|
|
homepage = "https://github.com/doyensec/inql";
|
|
changelog = "https://github.com/doyensec/inql/releases/tag/v${version}";
|
|
license = with lib.licenses; [ asl20 ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|