nixpkgs/pkgs/tools/security/clairvoyance/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
1.1 KiB
Nix
Raw Normal View History

2022-10-01 19:16:23 +00:00
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "clairvoyance";
version = "2.5.3";
2022-10-01 19:16:23 +00:00
format = "pyproject";
src = fetchFromGitHub {
owner = "nikitastupin";
repo = pname;
2022-12-07 21:53:15 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-CVXa2HvX7M0cwqnTeZVETg07j324ATQuMNreEgAC2QA=";
2022-10-01 19:16:23 +00:00
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
aiohttp
rich
2022-10-01 19:16:23 +00:00
];
nativeCheckInputs = with python3.pkgs; [
2022-10-01 19:16:23 +00:00
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";
mainProgram = "clairvoyance";
2022-10-01 19:16:23 +00:00
homepage = "https://github.com/nikitastupin/clairvoyance";
changelog = "https://github.com/nikitastupin/clairvoyance/releases/tag/v${version}";
2022-10-01 19:16:23 +00:00
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}