diff --git a/pkgs/development/python-modules/prowlpy/default.nix b/pkgs/development/python-modules/prowlpy/default.nix index 55a6e19b6797..c4cd08413856 100644 --- a/pkgs/development/python-modules/prowlpy/default.nix +++ b/pkgs/development/python-modules/prowlpy/default.nix @@ -1,42 +1,42 @@ { buildPythonPackage, - click, + cacert, fetchFromGitHub, - httpx, lib, loguru, + pyreqwest, pytest-asyncio, pytest-cov-stub, pytestCheckHook, respx, setuptools, + typer, xmltodict, }: buildPythonPackage rec { pname = "prowlpy"; - version = "1.1.5"; + version = "2.0.0"; pyproject = true; src = fetchFromGitHub { owner = "OMEGARAZER"; repo = "prowlpy"; tag = "v${version}"; - hash = "sha256-psXq858y5wsDU5GqGOzVFmYBSZvfuYXzOTZ20mx8PMw="; + hash = "sha256-S+hhZndOb5O9okrrnXGt7D0N4VRIThbMN1LYVPGzFy8="; }; build-system = [ setuptools ]; dependencies = [ - httpx + pyreqwest xmltodict - ] - ++ httpx.optional-dependencies.http2; + ]; optional-dependencies = { cli = [ - click loguru + typer ]; }; @@ -50,6 +50,12 @@ buildPythonPackage rec { ] ++ lib.concatAttrValues optional-dependencies; + preCheck = '' + # Without this pyreqwest fails with + # unexpected error: No CA certificates were loaded from the system + export SSL_CERT_FILE="${cacert}/etc/ssl/certs/ca-bundle.crt" + ''; + # tests fail without this pytestFlags = [ "-v" ];