diff --git a/pkgs/development/python-modules/vt-py/default.nix b/pkgs/development/python-modules/vt-py/default.nix index 2db6ff91f9ed..f8e2a8bd5693 100644 --- a/pkgs/development/python-modules/vt-py/default.nix +++ b/pkgs/development/python-modules/vt-py/default.nix @@ -1,40 +1,42 @@ -{ lib -, aiohttp -, buildPythonPackage -, fetchFromGitHub -, pytest-asyncio -, pytest-httpserver -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + pytest-asyncio, + pytest-httpserver, + pytestCheckHook, + pythonRelaxDepsHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "vt-py"; - version = "0.18.0"; + version = "0.18.1"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "VirusTotal"; - repo = pname; + repo = "vt-py"; rev = "refs/tags/${version}"; - hash = "sha256-QEe/ZoKM0uVH7Yqpgo7V17Odn4xqdEgdQeMVB+57xbA="; + hash = "sha256-rWzANh7tkayFR6V3JaF3BLhIjUlnrPMmEmI36Ncqz2M="; }; postPatch = '' substituteInPlace setup.py \ - --replace "pytest-runner" "" + --replace-fail "pytest-runner" "" ''; - nativeBuildInputs = [ - setuptools - ]; + pythonRelaxDeps = [ "aiohttp" ]; - propagatedBuildInputs = [ - aiohttp - ]; + build-system = [ setuptools ]; + + nativeBuildInputs = [ pythonRelaxDepsHook ]; + + dependencies = [ aiohttp ]; nativeCheckInputs = [ pytest-asyncio @@ -42,9 +44,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "vt" - ]; + pythonImportsCheck = [ "vt" ]; meta = with lib; { description = "Python client library for VirusTotal";