evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / vt-py / default.nix
blobc0f593de627f80d1d1edf06434644ce7c7bd630b
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   flask,
7   pytest-asyncio,
8   pytest-httpserver,
9   pytestCheckHook,
10   pythonOlder,
11   setuptools,
14 buildPythonPackage rec {
15   pname = "vt-py";
16   version = "0.18.4";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "VirusTotal";
23     repo = "vt-py";
24     rev = "refs/tags/${version}";
25     hash = "sha256-pMljLoJBSLq1UxXn+iOeiebWgVfdxW8uzdXPsZtANuw=";
26   };
28   postPatch = ''
29     substituteInPlace setup.py \
30       --replace-fail "pytest-runner" ""
31   '';
33   pythonRelaxDeps = [ "aiohttp" ];
35   build-system = [ setuptools ];
38   dependencies = [ aiohttp ];
40   nativeCheckInputs = [
41     flask
42     pytest-asyncio
43     pytest-httpserver
44     pytestCheckHook
45   ];
47   pythonImportsCheck = [ "vt" ];
49   meta = with lib; {
50     description = "Python client library for VirusTotal";
51     homepage = "https://virustotal.github.io/vt-py/";
52     changelog = "https://github.com/VirusTotal/vt-py/releases/tag//${version}";
53     license = with licenses; [ asl20 ];
54     maintainers = with maintainers; [ fab ];
55   };