inql: fix invalid version specifier
This commit is contained in:
parent
8fa251f6d5
commit
03bdcc5042
|
@ -11,9 +11,15 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
owner = "doyensec";
|
owner = "doyensec";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-DFGJHqdrCmOZn8GdY5SZ1PrOhuIsMLoK+2Fry9WkRiY=";
|
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; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
stickytape
|
stickytape
|
||||||
];
|
];
|
||||||
|
@ -28,6 +34,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Security testing tool for GraphQL";
|
description = "Security testing tool for GraphQL";
|
||||||
homepage = "https://github.com/doyensec/inql";
|
homepage = "https://github.com/doyensec/inql";
|
||||||
|
changelog = "https://github.com/doyensec/inql/releases/tag/v${version}";
|
||||||
license = with licenses; [ asl20 ];
|
license = with licenses; [ asl20 ];
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue