Commit 284b8139 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.msrest: refactor

- disable failing test on Python 3.12
parent 14f52c51
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -9,16 +9,18 @@
, isodate
, pytest-aiohttp
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, requests
, requests-oauthlib
, setuptools
, trio
}:

buildPythonPackage rec {
  pname = "msrest";
  version = "0.7.1";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

@@ -30,6 +32,10 @@ buildPythonPackage rec {
    hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    azure-core
    aiodns
@@ -56,6 +62,12 @@ buildPythonPackage rec {
    "test_conf_async_requests"
    "test_conf_async_requests"
    "test_conf_async_trio_requests"
  ] ++ lib.optionals (pythonAtLeast "3.12") [
    # AttributeError: 'TestAuthentication' object has no attribute...
    "test_apikey_auth"
    "test_cs_auth"
    "test_eventgrid_auth"
    "test_eventgrid_domain_auth"
  ];

  pythonImportsCheck = [