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

This commit is contained in:
Sandro
2024-08-27 21:51:28 +02:00
committed by GitHub
9 changed files with 63 additions and 42 deletions
@@ -1,35 +1,38 @@
{
lib,
buildPythonPackage,
fetchPypi,
pbr,
flake8,
stestr,
ddt,
fetchPypi,
flake8,
pbr,
pythonOlder,
setuptools,
stestr,
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" ];
@@ -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 = ''
@@ -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
@@ -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" ];
@@ -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
];
@@ -19,7 +19,7 @@
buildPythonPackage rec {
pname = "oslo-log";
version = "6.1.1";
version = "6.1.2";
pyproject = true;
disabled = pythonOlder "3.8";
@@ -27,7 +27,7 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "oslo.log";
inherit version;
hash = "sha256-41oSz+TK0T/7Cu2pn8yiCnBdD2lKhMLvewe0WWD4j7Q=";
hash = "sha256-92gEffnXBsSE3WZl3LvqKJAh1Iy3zlq/eh9poJSR9f4=";
};
build-system = [ setuptools ];
@@ -7,18 +7,19 @@
oslotest,
pbr,
pytz,
setuptools,
stestr,
}:
buildPythonPackage rec {
pname = "oslo-serialization";
version = "5.4.0";
format = "setuptools";
version = "5.5.0";
pyproject = true;
src = fetchPypi {
pname = "oslo.serialization";
inherit version;
hash = "sha256-MVyzRl6ZxoXLCRuQNly3Ab7nFA4gS6Pl/C2KILTsbnY=";
hash = "sha256-nnUvxdipdZVnKN2WqCGGeDs/78rLs1U6zZMwWIYeFaY=";
};
postPatch = ''
@@ -27,9 +28,12 @@ buildPythonPackage rec {
rm test-requirements.txt
'';
nativeBuildInputs = [ pbr ];
build-system = [
pbr
setuptools
];
propagatedBuildInputs = [
dependencies = [
msgpack
oslo-utils
pytz
@@ -41,7 +45,9 @@ buildPythonPackage rec {
];
checkPhase = ''
runHook preCheck
stestr run
runHook postCheck
'';
pythonImportsCheck = [ "oslo_serialization" ];
@@ -15,6 +15,7 @@
pbr,
pyparsing,
pytz,
qemu,
setuptools,
stestr,
testscenarios,
@@ -26,13 +27,13 @@
buildPythonPackage rec {
pname = "oslo-utils";
version = "7.2.0";
version = "7.3.0";
pyproject = true;
src = fetchPypi {
pname = "oslo.utils";
inherit version;
hash = "sha256-lPgFM5GjNQLatNhEZUAyYsoZ/9jP0poaXqPIqmIO9hA=";
hash = "sha256-WaXT5Oe7x42AHM68K4I+QptiTBK7bjtudvccKfK/Id8=";
};
postPatch = ''
@@ -63,6 +64,7 @@ buildPythonPackage rec {
eventlet
fixtures
oslotest
qemu
stestr
testscenarios
pyyaml
+3 -1
View File
@@ -9747,7 +9747,9 @@ self: super: with self; {
oslo-serialization = callPackage ../development/python-modules/oslo-serialization { };
oslo-utils = callPackage ../development/python-modules/oslo-utils { };
oslo-utils = callPackage ../development/python-modules/oslo-utils {
qemu = pkgs.qemu;
};
oslotest = callPackage ../development/python-modules/oslotest { };