Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 93 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394{ lib, buildPythonPackage, fetchPypi, ddt, debtcollector, eventlet, fixtures, iso8601, netaddr, netifaces, oslo-i18n, oslotest, packaging, pbr, pyparsing, pytz, setuptools, stestr, testscenarios, tzdata, pyyaml, iana-etc, libredirect,}:
buildPythonPackage rec { pname = "oslo-utils"; version = "7.2.0"; pyproject = true;
src = fetchPypi { pname = "oslo.utils"; inherit version; hash = "sha256-lPgFM5GjNQLatNhEZUAyYsoZ/9jP0poaXqPIqmIO9hA="; };
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 '';
nativeBuildInputs = [ pbr setuptools ];
propagatedBuildInputs = [ debtcollector iso8601 netaddr netifaces oslo-i18n packaging pyparsing pytz tzdata ];
nativeCheckInputs = [ ddt eventlet fixtures oslotest stestr testscenarios pyyaml ];
# disabled tests: # https://bugs.launchpad.net/oslo.utils/+bug/2054134 # netaddr default behaviour changed to be stricter checkPhase = '' echo "nameserver 127.0.0.1" > resolv.conf export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) export LD_PRELOAD=${libredirect}/lib/libredirect.so
stestr run -e <(echo " oslo_utils.tests.test_netutils.NetworkUtilsTest.test_is_valid_ip oslo_utils.tests.test_netutils.NetworkUtilsTest.test_is_valid_ipv4 ") '';
pythonImportsCheck = [ "oslo_utils" ];
meta = with lib; { description = "Oslo Utility library"; homepage = "https://github.com/openstack/oslo.utils"; license = licenses.asl20; maintainers = teams.openstack.members; };}