diff --git a/pkgs/development/python-modules/osc-lib/default.nix b/pkgs/development/python-modules/osc-lib/default.nix index db3233248043..43edaa7564d5 100644 --- a/pkgs/development/python-modules/osc-lib/default.nix +++ b/pkgs/development/python-modules/osc-lib/default.nix @@ -11,6 +11,7 @@ requests, requests-mock, setuptools, + stdenv, stestr, stevedore, }: @@ -27,8 +28,7 @@ buildPythonPackage rec { hash = "sha256-mFZLVlq2mFgx5yQLBPVVT/zDLbOJ/EodAwsm/QxvW0Q="; }; - # fake version to make pbr.packaging happy and not reject it... - PBR_VERSION = version; + env.PBR_VERSION = version; build-system = [ pbr @@ -51,7 +51,13 @@ buildPythonPackage rec { ]; checkPhase = '' - stestr run + stestr run -e <(echo " + ${lib.optionalString stdenv.hostPlatform.isDarwin '' + osc_lib.tests.test_shell.TestShellCli.test_shell_args_cloud_public + osc_lib.tests.test_shell.TestShellCli.test_shell_args_precedence + osc_lib.tests.test_shell.TestShellCliPrecedence.test_shell_args_precedence_1 + osc_lib.tests.test_shell.TestShellCliPrecedence.test_shell_args_precedence_2 + ''}") ''; pythonImportsCheck = [ "osc_lib" ]; diff --git a/pkgs/development/python-modules/oslo-concurrency/default.nix b/pkgs/development/python-modules/oslo-concurrency/default.nix index e554b710e723..2ecfdda87e27 100644 --- a/pkgs/development/python-modules/oslo-concurrency/default.nix +++ b/pkgs/development/python-modules/oslo-concurrency/default.nix @@ -1,57 +1,58 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, bash, coreutils, + debtcollector, eventlet, fasteners, fixtures, iana-etc, libredirect, oslo-config, + oslo-i18n, oslo-utils, oslotest, pbr, setuptools, + stdenv, stestr, }: buildPythonPackage rec { pname = "oslo-concurrency"; - version = "7.1.0"; + version = "7.2.0"; pyproject = true; - src = fetchPypi { - pname = "oslo_concurrency"; - inherit version; - hash = "sha256-34qHf4ACsH1p8dDnDbzvSSDTkkmqpi5Hj60haz3UFMs="; + src = fetchFromGitHub { + owner = "openstack"; + repo = "oslo.concurrency"; + tag = version; + hash = "sha256-72KatSWTCx4hyUel2Fu5yiqrdYveRGruvJDWWo1hkIk="; }; postPatch = '' - # only a small portion of the listed packages are actually needed for running the tests - # so instead of removing them one by one remove everything - rm test-requirements.txt - substituteInPlace oslo_concurrency/tests/unit/test_processutils.py \ + --replace-fail "/usr" "" \ --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" + --replace-fail "/bin/env" "${coreutils}/bin/env" ''; + env.PBR_VERSION = version; + build-system = [ setuptools ]; dependencies = [ + debtcollector fasteners oslo-config + oslo-i18n oslo-utils pbr ]; - # tests hang for unknown reason and time the build out - doCheck = false; - nativeCheckInputs = [ eventlet fixtures @@ -67,7 +68,14 @@ buildPythonPackage rec { stestr run -e <(echo " oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_fair_lock_with_spawn oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_fair_lock_with_spawn_n - ") + oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_lock_with_spawn + oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_lock_with_spawn_n + ${lib.optionalString stdenv.hostPlatform.isDarwin '' + oslo_concurrency.tests.unit.test_lockutils.FileBasedLockingTestCase.test_interprocess_nonblocking_external_lock + oslo_concurrency.tests.unit.test_lockutils.LockTestCase.test_lock_externally + oslo_concurrency.tests.unit.test_lockutils.LockTestCase.test_lock_externally_lock_dir_not_exist + oslo_concurrency.tests.unit.test_processutils.PrlimitTestCase.test_stack_size + ''}") ''; pythonImportsCheck = [ "oslo_concurrency" ]; diff --git a/pkgs/development/python-modules/python-octaviaclient/default.nix b/pkgs/development/python-modules/python-octaviaclient/default.nix index 19a9ed79b428..950c3344c066 100644 --- a/pkgs/development/python-modules/python-octaviaclient/default.nix +++ b/pkgs/development/python-modules/python-octaviaclient/default.nix @@ -8,7 +8,6 @@ hacking, keystoneauth1, makePythonPath, - openstackclient, openstackdocstheme, installer, osc-lib, @@ -18,6 +17,7 @@ pbr, pygments, python-neutronclient, + python-openstackclient, requests, requests-mock, setuptools, @@ -57,7 +57,7 @@ buildPythonPackage rec { cliff keystoneauth1 python-neutronclient - openstackclient + python-openstackclient osc-lib oslo-serialization oslo-utils