diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/vt-py')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/vt-py/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/vt-py/default.nix b/nixpkgs/pkgs/development/python-modules/vt-py/default.nix new file mode 100644 index 000000000000..80c297fe773c --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/vt-py/default.nix @@ -0,0 +1,50 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pytest-asyncio +, pytest-httpserver +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "vt-py"; + version = "0.11.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "VirusTotal"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-PpgN9adGNZOorOUigsBVOb//ZafUaYHfo/Fv1IZf/XA="; + }; + + 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 ]; + }; +} |