bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
97 lines
1.9 KiB
Nix
97 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
defusedxml,
|
|
fetchPypi,
|
|
pbr,
|
|
cliff,
|
|
jsonschema,
|
|
testtools,
|
|
paramiko,
|
|
netaddr,
|
|
oslo-concurrency,
|
|
oslo-config,
|
|
oslo-log,
|
|
stestr,
|
|
oslo-serialization,
|
|
oslo-utils,
|
|
fixtures,
|
|
pythonOlder,
|
|
pyyaml,
|
|
subunit,
|
|
stevedore,
|
|
prettytable,
|
|
urllib3,
|
|
debtcollector,
|
|
hacking,
|
|
oslotest,
|
|
bash,
|
|
python,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tempest";
|
|
version = "39.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-l4qKbTfQRWiRsoHN9fiAAiGMGP+q3gwRH1pMSXV/eSU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
pbr
|
|
cliff
|
|
defusedxml
|
|
jsonschema
|
|
testtools
|
|
paramiko
|
|
netaddr
|
|
oslo-concurrency
|
|
oslo-config
|
|
oslo-log
|
|
stestr
|
|
oslo-serialization
|
|
oslo-utils
|
|
fixtures
|
|
pyyaml
|
|
subunit
|
|
stevedore
|
|
prettytable
|
|
urllib3
|
|
debtcollector
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
stestr
|
|
hacking
|
|
oslotest
|
|
];
|
|
|
|
checkPhase = ''
|
|
# Tests expect these applications available as such.
|
|
mkdir -p bin
|
|
export PATH="$PWD/bin:$PATH"
|
|
printf '#!${bash}/bin/bash\nexec ${python.interpreter} -m tempest.cmd.main "$@"\n' > bin/tempest
|
|
printf '#!${bash}/bin/bash\nexec ${python.interpreter} -m tempest.cmd.subunit_describe_calls "$@"\n' > bin/subunit-describe-calls
|
|
chmod +x bin/*
|
|
|
|
stestr --test-path tempest/tests run -e <(echo "
|
|
tempest.tests.lib.cli.test_execute.TestExecute.test_execute_with_prefix
|
|
")
|
|
'';
|
|
|
|
pythonImportsCheck = [ "tempest" ];
|
|
|
|
meta = with lib; {
|
|
description = "OpenStack integration test suite that runs against live OpenStack cluster and validates an OpenStack deployment";
|
|
homepage = "https://github.com/openstack/tempest";
|
|
license = licenses.asl20;
|
|
maintainers = teams.openstack.members;
|
|
};
|
|
}
|