at 23.11-beta 1.0 kB view raw
1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, pytest-asyncio 6, pytest-httpserver 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "vt-py"; 13 version = "0.17.5"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "VirusTotal"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-O95W/J5y7qcR6PSzNQwOl0W19CyXifbq8okquESFSqM="; 23 }; 24 25 propagatedBuildInputs = [ 26 aiohttp 27 ]; 28 29 nativeCheckInputs = [ 30 pytest-asyncio 31 pytest-httpserver 32 pytestCheckHook 33 ]; 34 35 postPatch = '' 36 substituteInPlace setup.py \ 37 --replace "'pytest-runner'" "" 38 ''; 39 40 pythonImportsCheck = [ 41 "vt" 42 ]; 43 44 meta = with lib; { 45 description = "Python client library for VirusTotal"; 46 homepage = "https://virustotal.github.io/vt-py/"; 47 changelog = "https://github.com/VirusTotal/vt-py/releases/tag//${version}"; 48 license = with licenses; [ asl20 ]; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}