19 buildPythonPackage rec {
20 pname = "oslo-concurrency";
24 pname = "oslo.concurrency";
26 sha256 = "sha256-DfvzYJX0Y3/7tl5cJB9MJYUavTtyjd2tnwc5YwKnJUQ=";
30 # only a small portion of the listed packages are actually needed for running the tests
31 # so instead of removing them one by one remove everything
32 rm test-requirements.txt
34 substituteInPlace oslo_concurrency/tests/unit/test_processutils.py \
35 --replace "/bin/bash" "${bash}/bin/bash" \
36 --replace "/bin/true" "${coreutils}/bin/true" \
37 --replace "/usr/bin/env" "${coreutils}/bin/env" \
38 --replace "/usr/bin/true" "${coreutils}/bin/true"
41 propagatedBuildInputs = [
48 # tests hang for unknown reason and time the build out
59 echo "nameserver 127.0.0.1" > resolv.conf
60 export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf)
61 export LD_PRELOAD=${libredirect}/lib/libredirect.so
63 stestr run -e <(echo "
64 oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_fair_lock_with_spawn
65 oslo_concurrency.tests.unit.test_lockutils_eventlet.TestInternalLock.test_fair_lock_with_spawn_n
69 pythonImportsCheck = [ "oslo_concurrency" ];
72 broken = stdenv.isDarwin;
73 description = "Oslo Concurrency library";
74 homepage = "https://github.com/openstack/oslo.concurrency";
75 license = licenses.asl20;
76 maintainers = teams.openstack.members;