Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 httpx, 6 poetry-core, 7 poetry-dynamic-versioning, 8 pydantic, 9 pytest-asyncio, 10 pytestCheckHook, 11 radixtarget, 12 regex, 13}: 14 15buildPythonPackage rec { 16 pname = "cloudcheck"; 17 version = "7.2.11"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "blacklanternsecurity"; 22 repo = "cloudcheck"; 23 tag = "v${version}"; 24 hash = "sha256-z2KJ6EaqQLc2oQBZCfKMejPlTdgYGzmDPm/rGLHXCQA="; 25 }; 26 27 pythonRelaxDeps = [ "radixtarget" ]; 28 29 build-system = [ 30 poetry-core 31 poetry-dynamic-versioning 32 ]; 33 34 dependencies = [ 35 httpx 36 pydantic 37 radixtarget 38 regex 39 ]; 40 41 nativeCheckInputs = [ 42 pytest-asyncio 43 pytestCheckHook 44 ]; 45 46 pythonImportsCheck = [ "cloudcheck" ]; 47 48 meta = { 49 description = "Module to check whether an IP address or hostname belongs to popular cloud providers"; 50 homepage = "https://github.com/blacklanternsecurity/cloudcheck"; 51 license = lib.licenses.gpl3Only; 52 maintainers = with lib.maintainers; [ fab ]; 53 }; 54}