python39Packages.oslo-utils: init at 4.10.0

This commit is contained in:
Sandro Jäckel 2021-09-11 12:15:55 +02:00
parent ec305549b4
commit ac15248e5b
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,79 @@
{ lib
, buildPythonPackage
, fetchPypi
, ddt
, debtcollector
, eventlet
, fixtures
, iso8601
, netaddr
, netifaces
, oslo-i18n
, oslotest
, packaging
, pbr
, pyparsing
, pytz
, stestr
, testscenarios
, pyyaml
, iana-etc
, libredirect
}:
buildPythonPackage rec {
pname = "oslo-utils";
version = "4.10.0";
src = fetchPypi {
pname = "oslo.utils";
inherit version;
sha256 = "9646e6570ed08a79f21b03acfb60d32a3ac453d76304f8759b1211a59ce372cb";
};
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 ];
propagatedBuildInputs = [
debtcollector
iso8601
netaddr
netifaces
oslo-i18n
packaging
pyparsing
pytz
];
checkInputs = [
ddt
eventlet
fixtures
oslotest
stestr
testscenarios
pyyaml
];
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
'';
pythonImportsCheck = [ "oslo_utils" ];
meta = with lib; {
description = "Oslo Utility library";
homepage = "https://github.com/openstack/oslo.utils";
license = licenses.asl20;
maintainers = teams.openstack.members;
};
}

View File

@ -5168,6 +5168,8 @@ in {
oslo-serialization = callPackage ../development/python-modules/oslo-serialization { };
oslo-utils = callPackage ../development/python-modules/oslo-utils { };
osqp = callPackage ../development/python-modules/osqp { };
outcome = callPackage ../development/python-modules/outcome { };