My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/vt-py/default.nix

50 lines
906 B

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-httpserver
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "vt-py";
version = "0.14.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "VirusTotal";
repo = pname;
rev = version;
sha256 = "sha256-901VW56vr6ysMlzspgVbPMLnDIpJRgSEOEQ8ohHp+mc=";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytest-asyncio
pytest-httpserver
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner'" ""
'';
pythonImportsCheck = [
"vt"
];
meta = with lib; {
description = "Python client library for VirusTotal";
homepage = "https://virustotal.github.io/vt-py/";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}