2
0
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:
Fabian Affolter 2022-10-01 21:16:23 +02:00
parent a2cf0add92
commit 919ac6f91f
2 changed files with 53 additions and 0 deletions
pkgs
tools/security/clairvoyance
top-level

View 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 ];
};
}

View File

@ -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 { };