biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / security / clairvoyance / default.nix
blobca308604749435a8f2dc060deb07d4ac68551237
1 { lib
2 , fetchFromGitHub
3 , python3
4 }:
6 python3.pkgs.buildPythonApplication rec {
7   pname = "clairvoyance";
8   version = "2.5.3";
9   format = "pyproject";
11   src = fetchFromGitHub {
12     owner = "nikitastupin";
13     repo = pname;
14     rev = "refs/tags/v${version}";
15     hash = "sha256-CVXa2HvX7M0cwqnTeZVETg07j324ATQuMNreEgAC2QA=";
16   };
18   nativeBuildInputs = with python3.pkgs; [
19     poetry-core
20   ];
22   propagatedBuildInputs = with python3.pkgs; [
23     aiohttp
24     rich
25   ];
27   nativeCheckInputs = with python3.pkgs; [
28     aiounittest
29     pytestCheckHook
30   ];
32   postPatch = ''
33     substituteInPlace pyproject.toml \
34       --replace 'asyncio = "^3.4.3"' ""
35   '';
37   pythonImportsCheck = [
38     "clairvoyance"
39   ];
41   disabledTests = [
42     # KeyError
43     "test_probe_typename"
44   ];
46   meta = with lib; {
47     description = "Tool to obtain GraphQL API schemas";
48     mainProgram = "clairvoyance";
49     homepage = "https://github.com/nikitastupin/clairvoyance";
50     changelog = "https://github.com/nikitastupin/clairvoyance/releases/tag/v${version}";
51     license = with licenses; [ asl20 ];
52     maintainers = with maintainers; [ fab ];
53   };