mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 20:18:08 +00:00
clairvoyance: init at 2.0.4
This commit is contained in:
parent
a2cf0add92
commit
919ac6f91f
pkgs
51
pkgs/tools/security/clairvoyance/default.nix
Normal file
51
pkgs/tools/security/clairvoyance/default.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, python3
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "clairvoyance";
|
||||
version = "2.0.4";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nikitastupin";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-b69a3UTRt5axTSjLcEYkqGe7bFlQKCiMzoNtw91HCyI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
checkInputs = with python3.pkgs; [
|
||||
aiounittest
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'asyncio = "^3.4.3"' ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"clairvoyance"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# KeyError
|
||||
"test_probe_typename"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool to obtain GraphQL API schemas";
|
||||
homepage = "https://github.com/nikitastupin/clairvoyance";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -2376,6 +2376,8 @@ with pkgs;
|
||||
|
||||
clair = callPackage ../tools/admin/clair { };
|
||||
|
||||
clairvoyance = callPackage ../tools/security/clairvoyance { };
|
||||
|
||||
cloud-sql-proxy = callPackage ../tools/misc/cloud-sql-proxy { };
|
||||
|
||||
cloudfox = callPackage ../tools/security/cloudfox { };
|
||||
|
Loading…
Reference in New Issue
Block a user