From f28e56011c243d1618cd366f0c43d83daf7e2f88 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 25 Jun 2022 12:42:27 +0200 Subject: [PATCH] python310Packages.censys: 2.1.6 -> 2.1.6 --- .../python-modules/censys/default.nix | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/censys/default.nix b/pkgs/development/python-modules/censys/default.nix index 754d7ca0f2aa..272be648d2cf 100644 --- a/pkgs/development/python-modules/censys/default.nix +++ b/pkgs/development/python-modules/censys/default.nix @@ -5,8 +5,10 @@ , importlib-metadata , parameterized , poetry-core +, pytest-mock , pytestCheckHook , pythonOlder +, pythonRelaxDepsHook , requests , requests-mock , responses @@ -15,20 +17,21 @@ buildPythonPackage rec { pname = "censys"; - version = "2.1.3"; + version = "2.1.6"; format = "pyproject"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "censys"; repo = "censys-python"; rev = "v${version}"; - sha256 = "sha256-Zv3ViOrdQby+7UQrHy6174W2qh1vx21R0yOA7ecr0lU="; + hash = "sha256-jCQWjGx35erhkj1gjBjdGytvKNarrTODH6fJpFMQqLE="; }; nativeBuildInputs = [ poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = [ @@ -40,16 +43,19 @@ buildPythonPackage rec { checkInputs = [ parameterized + pytest-mock pytestCheckHook requests-mock responses ]; + pythonRelaxDeps = [ + "backoff" + "requests" + "rich" + ]; + postPatch = '' - substituteInPlace pyproject.toml \ - --replace 'backoff = "^1.11.1"' 'backoff = "*"' \ - --replace 'requests = ">=2.26.0"' 'requests = "*"' \ - --replace 'rich = "^10.16.2"' 'rich = "*"' substituteInPlace pytest.ini \ --replace "--cov" "" ''; @@ -60,7 +66,9 @@ buildPythonPackage rec { mkdir -p $HOME ''; - pythonImportsCheck = [ "censys" ]; + pythonImportsCheck = [ + "censys" + ]; meta = with lib; { description = "Python API wrapper for the Censys Search Engine (censys.io)";