at master 1.1 kB view raw
1{ 2 lib, 3 aiofiles, 4 aiohttp, 5 buildPythonPackage, 6 fetchFromGitHub, 7 flask, 8 pytest-asyncio, 9 pytest-httpserver, 10 pytestCheckHook, 11 pythonOlder, 12 setuptools, 13}: 14 15buildPythonPackage rec { 16 pname = "vt-py"; 17 version = "0.21.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "VirusTotal"; 24 repo = "vt-py"; 25 tag = version; 26 hash = "sha256-hp9MjFSakFezlT/rTHa70KrL3VShhpayXaK88LxY7I4="; 27 }; 28 29 postPatch = '' 30 substituteInPlace setup.py \ 31 --replace-fail "pytest-runner" "" 32 ''; 33 34 pythonRelaxDeps = [ "aiohttp" ]; 35 36 build-system = [ setuptools ]; 37 38 dependencies = [ 39 aiofiles 40 aiohttp 41 ]; 42 43 nativeCheckInputs = [ 44 flask 45 pytest-asyncio 46 pytest-httpserver 47 pytestCheckHook 48 ]; 49 50 pythonImportsCheck = [ "vt" ]; 51 52 meta = with lib; { 53 description = "Python client library for VirusTotal"; 54 homepage = "https://virustotal.github.io/vt-py/"; 55 changelog = "https://github.com/VirusTotal/vt-py/releases/tag//${version}"; 56 license = with licenses; [ asl20 ]; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}