forked from mirrors/nixpkgs
pythonPackages.tempest: init 28.1.0
This commit is contained in:
parent
7e4ea5c265
commit
7e13a25c8e
89
pkgs/development/python-modules/tempest/default.nix
Normal file
89
pkgs/development/python-modules/tempest/default.nix
Normal file
|
@ -0,0 +1,89 @@
|
|||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchPypi
|
||||
, pbr
|
||||
, cliff
|
||||
, jsonschema
|
||||
, testtools
|
||||
, paramiko
|
||||
, netaddr
|
||||
, oslo-concurrency
|
||||
, oslo-config
|
||||
, oslo-log
|
||||
, stestr
|
||||
, oslo-serialization
|
||||
, oslo-utils
|
||||
, fixtures
|
||||
, pyyaml
|
||||
, subunit
|
||||
, stevedore
|
||||
, prettytable
|
||||
, urllib3
|
||||
, debtcollector
|
||||
, unittest2
|
||||
, hacking
|
||||
, oslotest
|
||||
, bash
|
||||
, python3
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "tempest";
|
||||
version = "28.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "24fcc0baa2044454b17b6b4aa2b1b19682cf95eb92ca38a2f289d3cbc488b170";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pbr
|
||||
cliff
|
||||
jsonschema
|
||||
testtools
|
||||
paramiko
|
||||
netaddr
|
||||
oslo-concurrency
|
||||
oslo-config
|
||||
oslo-log
|
||||
stestr
|
||||
oslo-serialization
|
||||
oslo-utils
|
||||
fixtures
|
||||
pyyaml
|
||||
subunit
|
||||
stevedore
|
||||
prettytable
|
||||
urllib3
|
||||
debtcollector
|
||||
unittest2
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
stestr
|
||||
hacking
|
||||
oslotest
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
# Tests expect these applications available as such.
|
||||
mkdir -p bin
|
||||
export PATH="$PWD/bin:$PATH"
|
||||
printf '#!${bash}/bin/bash\nexec ${python3.interpreter} -m tempest.cmd.main "$@"\n' > bin/tempest
|
||||
printf '#!${bash}/bin/bash\nexec ${python3.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 = "An 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;
|
||||
};
|
||||
}
|
|
@ -8733,6 +8733,8 @@ in {
|
|||
|
||||
telfhash = callPackage ../development/python-modules/telfhash { };
|
||||
|
||||
tempest = callPackage ../development/python-modules/tempest { };
|
||||
|
||||
tempita = callPackage ../development/python-modules/tempita { };
|
||||
|
||||
tempora = callPackage ../development/python-modules/tempora { };
|
||||
|
|
Loading…
Reference in a new issue