stripe-cli: 1.23.3 -> 1.23.5 (#375724)
[NixPkgs.git] / pkgs / development / python-modules / vt-py / default.nix
blobcb1440b51602d9fd76378a89776a479cdc543956
2   lib,
3   aiofiles,
4   aiohttp,
5   buildPythonPackage,
6   fetchFromGitHub,
7   flask,
8   pytest-asyncio,
9   pytest-httpserver,
10   pytestCheckHook,
11   pythonOlder,
12   setuptools,
15 buildPythonPackage rec {
16   pname = "vt-py";
17   version = "0.19.0";
18   pyproject = true;
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "VirusTotal";
24     repo = "vt-py";
25     tag = version;
26     hash = "sha256-r6pEtq/GQzVY+gRzY2KZfSQEyp4ZoFRLBd8tlXp/aM8=";
27   };
29   postPatch = ''
30     substituteInPlace setup.py \
31       --replace-fail "pytest-runner" ""
32   '';
34   pythonRelaxDeps = [ "aiohttp" ];
36   build-system = [ setuptools ];
38   dependencies = [
39     aiofiles
40     aiohttp
41   ];
43   nativeCheckInputs = [
44     flask
45     pytest-asyncio
46     pytest-httpserver
47     pytestCheckHook
48   ];
50   pythonImportsCheck = [ "vt" ];
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   };