Unverified Commit f7e20b2e authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #296931 from fabaff/azure-keyvault-keys-bump

python312Packages.azure-keyvault-keys: 4.8.0 -> 4.9.0
parents a1b894ef a5e78b35
Loading
Loading
Loading
Loading
+24 −27
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, aiohttp
, azure-common
, azure-core
, cryptography
, msrest
, pytestCheckHook
{
  lib,
  azure-common,
  azure-core,
  buildPythonPackage,
  cryptography,
  fetchPypi,
  isodate,
  pythonOlder,
  setuptools,
  typing-extensions,
}:

buildPythonPackage rec {
  pname = "azure-keyvault-keys";
  version = "4.8.0";
  format = "setuptools";
  version = "4.9.0";
  pyproject = true;

  disabled = pythonOlder "3.6";
  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    extension = "zip";
    hash = "sha256-bAuy94MgKjSj5ex0hm5iEuWRrHEk8DuWadGwm2giS8Q=";
    hash = "sha256-CGMtzW7OKGVyBOmiVq1kNp/isOOF7UM0n5MvAH2J93Q=";
  };

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    azure-common
    azure-core
    msrest
    cryptography
    isodate
    typing-extensions
  ];

  nativeCheckInputs = [
    aiohttp
    pytestCheckHook
  ];

  pythonNamespaces = [
    "azure.keyvault"
  ];
  pythonNamespaces = [ "azure.keyvault" ];

  # requires relative paths to utilities in the mono-repo
  # Tests require relative paths to utilities in the mono-repo
  doCheck = false;

  pythonImportsCheck = [
@@ -52,7 +48,8 @@ buildPythonPackage rec {

  meta = with lib; {
    description = "Microsoft Azure Key Vault Keys Client Library for Python";
    homepage = "https://github.com/Azure/azure-sdk-for-python";
    homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-keys";
    changelog = "https://github.com/Azure/azure-sdk-for-python/tree/azure-keyvault-keys_${version}/sdk/keyvault/azure-keyvault-keys";
    license = licenses.mit;
    maintainers = with maintainers; [ jonringer ];
  };
+24 −25
Original line number Diff line number Diff line
{ buildPythonPackage
, fetchFromGitHub
, lib
, pythonOlder
, poetry-core
, grpclib
, python-dateutil
, black
, jinja2
, isort
, python
, pydantic
, pytestCheckHook
, pytest-asyncio
, pytest-mock
, typing-extensions
, tomlkit
, grpcio-tools
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pythonOlder,
  poetry-core,
  grpclib,
  python-dateutil,
  black,
  jinja2,
  isort,
  python,
  pydantic,
  pytestCheckHook,
  pytest-asyncio,
  pytest-mock,
  typing-extensions,
  tomlkit,
  grpcio-tools,
}:

buildPythonPackage rec {
@@ -32,11 +33,9 @@ buildPythonPackage rec {
    hash = "sha256-ZuVq4WERXsRFUPNNTNp/eisWX1MyI7UtwqEI8X93wYI=";
  };

  nativeBuildInputs = [
    poetry-core
  ];
  build-system = [ poetry-core ];

  propagatedBuildInputs = [
  dependencies = [
    grpclib
    python-dateutil
    typing-extensions
@@ -57,9 +56,7 @@ buildPythonPackage rec {
    tomlkit
  ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);

  pythonImportsCheck = [
    "betterproto"
  ];
  pythonImportsCheck = [ "betterproto" ];

  # The tests require the generation of code before execution. This requires
  # the protoc-gen-python_betterproto script from the package to be on PATH.
@@ -76,6 +73,8 @@ buildPythonPackage rec {

  disabledTests = [
    "test_pydantic_no_value"
    # Test is flaky
    "test_binary_compatibility"
  ];

  meta = with lib; {
+30 −7
Original line number Diff line number Diff line
{ lib, fetchPypi, buildPythonPackage, pythonAtLeast }:
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  pythonOlder,
  setuptools,
  versioneer,
}:

buildPythonPackage rec {
  pname = "ed25519";
  version = "1.5";
  format = "setuptools";
  pyproject = true;

  # last commit in 2019, various compat issues with 3.12
  disabled = pythonAtLeast "3.12";
  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0n1k83ww0pr4q6z0h7p8hvy21hcgb96jvgllfbwhvvyf37h3w182";
  src = fetchFromGitHub {
    owner = "warner";
    repo = "python-ed25519";
    rev = "refs/tags/${version}";
    hash = "sha256-AwnhB5UGycQliNndbqd0JlI4vKSehCSy0qHv2EiB+jA=";
  };

  postPatch = ''
    rm versioneer.py
  '';

  build-system = [
    setuptools
    versioneer
  ];

  pythonImportsCheck = [
    "ed25519"
  ];

  meta = with lib; {
    description = "Ed25519 public-key signatures";
    mainProgram = "edsig";
    homepage = "https://github.com/warner/python-ed25519";
    changelog = "https://github.com/warner/python-ed25519/blob/${version}/NEWS";
    license = licenses.mit;
    maintainers = with maintainers; [ np ];
  };
+26 −22
Original line number Diff line number Diff line
{ buildPythonPackage
, fetchFromGitHub
, lib
, pythonOlder
, h2
, multidict
, pytestCheckHook
, pytest-asyncio
, async-timeout
, faker
, googleapis-common-protos
, certifi
{
  lib,
  async-timeout,
  buildPythonPackage,
  certifi,
  faker,
  fetchFromGitHub,
  googleapis-common-protos,
  h2,
  multidict,
  pytest-asyncio,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:
let

buildPythonPackage rec {
  pname = "grpclib";
  version = "0.4.4";
  format = "setuptools";
in
buildPythonPackage {
  inherit pname version;
  version = "0.4.7";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "vmagamedov";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-bCLyBfsNdIGdpz9l/r2iYIQ5TitKmsctekeOthIkXhw=";
    repo = "grpclib";
    rev = "refs/tags/v${version}";
    hash = "sha256-5221hVjD0TynCsTdruiUZkTsb7uOi49tZ8M/YqdWreE=";
  };

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    h2
    multidict
  ];
@@ -46,6 +49,7 @@ buildPythonPackage {
  meta = with lib; {
    description = "Pure-Python gRPC implementation for asyncio";
    homepage = "https://github.com/vmagamedov/grpclib";
    changelog = "https://github.com/vmagamedov/grpclib/blob/v${version}/docs/changelog/index.rst";
    license = licenses.bsd3;
    maintainers = with maintainers; [ nikstur ];
  };
+34 −37
Original line number Diff line number Diff line
{ lib
, stdenv
, aiohttp
, buildPythonPackage
, ed25519
, fetchFromGitHub
, nats-server
, nkeys
, pytestCheckHook
, pythonOlder
, setuptools
, uvloop
{
  lib,
  stdenv,
  aiohttp,
  buildPythonPackage,
  ed25519,
  fetchFromGitHub,
  nats-server,
  nkeys,
  pytestCheckHook,
  pythonOlder,
  setuptools,
  uvloop,
}:

buildPythonPackage rec {
@@ -26,21 +27,13 @@ buildPythonPackage rec {
    hash = "sha256-5lvdt1JbOmdts0CYU00bSmv0LsMQsOe//yUgyevBULE=";
  };

  nativeBuildInputs = [
    setuptools
  ];
  build-system = [ setuptools ];

  propagatedBuildInputs = [
    ed25519
  ];
  dependencies = [ ed25519 ];

  passthru.optional-dependencies = {
    aiohttp = [
      aiohttp
    ];
    nkeys = [
      nkeys
    ];
    aiohttp = [ aiohttp ];
    nkeys = [ nkeys ];
    # fast_parse = [
    #   fast-mail-parser
    # ];
@@ -52,20 +45,24 @@ buildPythonPackage rec {
    uvloop
  ];

  disabledTests = [
  disabledTests =
    [
      # AssertionError: assert 5 == 0
      "test_pull_subscribe_limits"
      "test_fetch_n"
      "test_subscribe_no_echo"
      "test_stream_management"
  ] ++ lib.optionals stdenv.isDarwin [
      # Tests fail on hydra, often Time-out
      "test_subscribe_iterate_next_msg"
      "test_ordered_consumer_larger_streams"
      "test_object_file_basics"
    ]
    ++ lib.optionals stdenv.isDarwin [
      "test_subscribe_iterate_next_msg"
      "test_buf_size_force_flush_timeout"
    ];

  pythonImportsCheck = [
    "nats"
  ];
  pythonImportsCheck = [ "nats" ];

  meta = with lib; {
    description = "Python client for NATS.io";
Loading