Unverified Commit 32867a4f authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

python311Packages.hacking: 6.1.0 -> 7.0.0 (#337223)

parents e47a32e1 f3a7aca6
Loading
Loading
Loading
Loading
+16 −14
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  ddt,
  fetchPypi,
  pbr,
  flake8,
  pbr,
  pythonOlder,
  setuptools,
  stestr,
  ddt,
  testscenarios,
}:

buildPythonPackage rec {
  pname = "hacking";
  version = "6.1.0";
  format = "setuptools";
  version = "7.0.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-3lBqMSQDThi046acld5JjDRgvLxJwWQ9MXjRW8barBQ=";
    hash = "sha256-ubbC5SgPfVT6gsWP4JmD9oxbb2NKw/ozn4uhalcVyrc=";
  };

  postPatch = ''
    sed -i 's/flake8.*/flake8/' requirements.txt
    substituteInPlace hacking/checks/python23.py \
      --replace 'H236: class Foo(object):\n    __metaclass__ = \' 'Okay: class Foo(object):\n    __metaclass__ = \'
    substituteInPlace hacking/checks/except_checks.py \
      --replace 'H201: except:' 'Okay: except:'
  '';

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

  propagatedBuildInputs = [ flake8 ];
  dependencies = [ flake8 ];

  nativeCheckInputs = [
    ddt
@@ -38,10 +41,9 @@ buildPythonPackage rec {
  ];

  checkPhase = ''
    # tries to trigger flake8 and fails
    rm hacking/tests/test_doctest.py

    runHook preCheck
    stestr run
    runHook postCheck
  '';

  pythonImportsCheck = [ "hacking" ];
+2 −2
Original line number Diff line number Diff line
@@ -26,12 +26,12 @@

buildPythonPackage rec {
  pname = "keystoneauth1";
  version = "5.7.0";
  version = "5.8.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-sswtaNGkjpwsbZsbH9ANfHvf4IboBAtR5wk4qLo639E=";
    hash = "sha256-MVfCEuEhFk3mTWPl734dqtK9NkmmjeHpcbdodwGe8cQ=";
  };

  postPatch = ''
+11 −8
Original line number Diff line number Diff line
@@ -13,18 +13,19 @@
  oslo-utils,
  oslotest,
  pbr,
  setuptools,
  stestr,
}:

buildPythonPackage rec {
  pname = "oslo-concurrency";
  version = "6.0.0";
  format = "setuptools";
  version = "6.1.0";
  pyproject = true;

  src = fetchPypi {
    pname = "oslo.concurrency";
    inherit version;
    hash = "sha256-tS8CtORvXydLkfuOG/xcv5pBjfzUqDvggDRUlePSboo=";
    hash = "sha256-tWSuCvLuV3DztuYw3yakuGdsf+Qih/GIPiWaUard8Jc=";
  };

  postPatch = ''
@@ -33,13 +34,15 @@ buildPythonPackage rec {
    rm test-requirements.txt

    substituteInPlace oslo_concurrency/tests/unit/test_processutils.py \
      --replace "/bin/bash" "${bash}/bin/bash" \
      --replace "/bin/true" "${coreutils}/bin/true" \
      --replace "/usr/bin/env" "${coreutils}/bin/env" \
      --replace "/usr/bin/true" "${coreutils}/bin/true"
      --replace-fail "/bin/bash" "${bash}/bin/bash" \
      --replace-fail "/usr/bin/true" "${coreutils}/bin/true" \
      --replace-fail "/bin/true" "${coreutils}/bin/true" \
      --replace-fail "/usr/bin/env" "${coreutils}/bin/env"
  '';

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    fasteners
    oslo-config
    oslo-utils
+9 −3
Original line number Diff line number Diff line
@@ -6,15 +6,17 @@
  oslotest,
  stestr,
  pbr,
  setuptools,
}:

buildPythonPackage rec {
  pname = "oslo.context";
  version = "5.5.0";
  version = "5.6.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-6uAxeymSjxk030xguGD+hiUkfLKXxcxi/vjrWCexL6w=";
    hash = "sha256-UiLDJja+BwojDfnTFBoLJ6lfCjtpePTBSFvK2kekw8s=";
  };

  postPatch = ''
@@ -23,7 +25,9 @@ buildPythonPackage rec {
    rm test-requirements.txt
  '';

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    debtcollector
    pbr
  ];
@@ -34,7 +38,9 @@ buildPythonPackage rec {
  ];

  checkPhase = ''
    runHook preCheck
    stestr run
    runHook postCheck
  '';

  pythonImportsCheck = [ "oslo_context" ];
+3 −3
Original line number Diff line number Diff line
@@ -11,13 +11,13 @@

buildPythonPackage rec {
  pname = "oslo-i18n";
  version = "6.3.0";
  version = "6.4.0";
  pyproject = true;

  src = fetchPypi {
    pname = "oslo.i18n";
    inherit version;
    hash = "sha256-ZKJR7e+L8bsdTm9403fhSdTxXBqSRd538XIBbaYmdEQ=";
    hash = "sha256-ZuBMBB6f8X0H4T7H9IKV+8NhaRQ8csojUqPvzJjntgg=";
  };

  postPatch = ''
@@ -26,7 +26,7 @@ buildPythonPackage rec {
    rm test-requirements.txt
  '';

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