python39Packages.oslo-utils: init at 4.10.0
This commit is contained in:
parent
ec305549b4
commit
ac15248e5b
2 changed files with 81 additions and 0 deletions
79
pkgs/development/python-modules/oslo-utils/default.nix
Normal file
79
pkgs/development/python-modules/oslo-utils/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -5168,6 +5168,8 @@ in {
|
||||||
|
|
||||||
oslo-serialization = callPackage ../development/python-modules/oslo-serialization { };
|
oslo-serialization = callPackage ../development/python-modules/oslo-serialization { };
|
||||||
|
|
||||||
|
oslo-utils = callPackage ../development/python-modules/oslo-utils { };
|
||||||
|
|
||||||
osqp = callPackage ../development/python-modules/osqp { };
|
osqp = callPackage ../development/python-modules/osqp { };
|
||||||
|
|
||||||
outcome = callPackage ../development/python-modules/outcome { };
|
outcome = callPackage ../development/python-modules/outcome { };
|
||||||
|
|
Loading…
Reference in a new issue