mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
bb46e6d646
Diff: https://github.com/VirusTotal/vt-py/compare/refs/tags/0.17.4...0.17.5 Changelog: https://github.com/VirusTotal/vt-py/releases/tag//0.17.5
52 lines
1005 B
Nix
52 lines
1005 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytest-httpserver
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vt-py";
|
|
version = "0.17.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "VirusTotal";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-O95W/J5y7qcR6PSzNQwOl0W19CyXifbq8okquESFSqM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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/";
|
|
changelog = "https://github.com/VirusTotal/vt-py/releases/tag//${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|