mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
ff1a94e523
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.
43 lines
951 B
Nix
43 lines
951 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "inql";
|
|
version = "4.0.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "doyensec";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-DFGJHqdrCmOZn8GdY5SZ1PrOhuIsMLoK+2Fry9WkRiY=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# To set the version a full git checkout would be needed
|
|
substituteInPlace setup.py \
|
|
--replace "version=version()," "version='${version}',"
|
|
'';
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
stickytape
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"inql"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|