python3Packages.vt-py: init at 0.7.4

This commit is contained in:
Fabian Affolter 2021-09-29 14:44:30 +02:00
parent 7c1a58a630
commit e0ad11f61b
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-httpserver
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "vt-py";
version = "0.7.4";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "VirusTotal";
repo = pname;
rev = version;
sha256 = "149fgrqnwf8nyv3msj6p614zbdi7m7s785y3fvh8fm8k7lmgqk8w";
};
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 ];
};
}

View File

@ -9477,6 +9477,8 @@ in {
vsure = callPackage ../development/python-modules/vsure { };
vt-py = callPackage ../development/python-modules/vt-py { };
vtk = toPythonModule (pkgs.vtk.override {
pythonInterpreter = python;
enablePython = true;