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

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

52 lines
998 B
Nix
Raw Normal View History

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