python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / python-modules / vt-py / default.nix
blob1d0c7b4ffb71f754b95fa6cd5729b6c4fe1135bb
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pytest-asyncio
6 , pytest-httpserver
7 , pytestCheckHook
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "vt-py";
13   version = "0.17.1";
14   format = "setuptools";
16   disabled = pythonOlder "3.6";
18   src = fetchFromGitHub {
19     owner = "VirusTotal";
20     repo = pname;
21     rev = "refs/tags/${version}";
22     hash = "sha256-yG0bKBn3pQWtxjuxkhKMMJW1nzbsk5y/9h2OOCkdch8=";
23   };
25   propagatedBuildInputs = [
26     aiohttp
27   ];
29   checkInputs = [
30     pytest-asyncio
31     pytest-httpserver
32     pytestCheckHook
33   ];
35   postPatch = ''
36     substituteInPlace setup.py \
37       --replace "'pytest-runner'" ""
38   '';
40   pythonImportsCheck = [
41     "vt"
42   ];
44   meta = with lib; {
45     description = "Python client library for VirusTotal";
46     homepage = "https://virustotal.github.io/vt-py/";
47     changelog = "https://github.com/VirusTotal/vt-py/releases/tag//${version}";
48     license = with licenses; [ asl20 ];
49     maintainers = with maintainers; [ fab ];
50   };