Commit 41de4c60 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.aws-encryption-sdk: disable failing tests on Python 3.12

parent 2a7ab29d
Loading
Loading
Loading
Loading
+20 −12
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, attrs
, boto3
, buildPythonPackage
, cryptography
, setuptools
, wrapt
, fetchPypi
, mock
, pytest
, pytest-mock
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, setuptools
, wrapt
}:

buildPythonPackage rec {
  pname = "aws-encryption-sdk";
  version = "3.1.1";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-jV+/AY/GjWscrL5N0Df9gFKWx3Nqn+RX62hNBT9/lWM=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    attrs
    boto3
    cryptography
    setuptools
    wrapt
  ];

  doCheck = true;

  nativeCheckInputs = [
    mock
    pytest
    pytest-mock
    pytestCheckHook
  ];

  disabledTestPaths = [
    # requires networking
    # Tests require networking
    "examples"
    "test/integration"
  ];

  disabledTests = lib.optionals (pythonAtLeast "3.12") [
    # AssertionError: Regex pattern did not match, https://github.com/aws/aws-encryption-sdk-python/issues/644
    "test_abstracts"
  ];

  meta = with lib; {
    description = "Python implementation of the AWS Encryption SDK";
    homepage = "https://aws-encryption-sdk-python.readthedocs.io/";
    changelog = "https://github.com/aws/aws-encryption-sdk-python/blob/v${version}/CHANGELOG.rst";
    description = "Fully compliant, native Python implementation of the AWS Encryption SDK.";
    license = licenses.asl20;
    maintainers = with maintainers; [ anthonyroussel ];
  };