28 buildPythonPackage rec {
36 hash = "sha256-WaXT5Oe7x42AHM68K4I+QptiTBK7bjtudvccKfK/Id8=";
40 # only a small portion of the listed packages are actually needed for running the tests
41 # so instead of removing them one by one remove everything
42 rm test-requirements.txt
50 propagatedBuildInputs = [
74 # https://bugs.launchpad.net/oslo.utils/+bug/2054134
75 # netaddr default behaviour changed to be stricter
77 echo "nameserver 127.0.0.1" > resolv.conf
78 export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf)
79 export LD_PRELOAD=${libredirect}/lib/libredirect.so
81 stestr run -e <(echo "
82 oslo_utils.tests.test_netutils.NetworkUtilsTest.test_is_valid_ip
83 oslo_utils.tests.test_netutils.NetworkUtilsTest.test_is_valid_ipv4
87 pythonImportsCheck = [ "oslo_utils" ];
90 description = "Oslo Utility library";
91 homepage = "https://github.com/openstack/oslo.utils";
92 license = licenses.asl20;
93 maintainers = teams.openstack.members;