mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
python39Packages.subunit2sql: init at 1.10.0
This commit is contained in:
parent
02a5e64320
commit
0eb567a2da
55
pkgs/development/python-modules/subunit2sql/default.nix
Normal file
55
pkgs/development/python-modules/subunit2sql/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, mock
|
||||
, oslo-concurrency
|
||||
, oslo-db
|
||||
, pbr
|
||||
, python-dateutil
|
||||
, stestr
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "subunit2sql";
|
||||
version = "1.10.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-c+Dg6moKiv30M0mmwGQSOEbc94gfH//ZnF7lnBgv8EU=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
oslo-db
|
||||
pbr
|
||||
python-dateutil
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
oslo-concurrency
|
||||
stestr
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
export PATH=$out/bin:$PATH
|
||||
export HOME=$TMPDIR
|
||||
|
||||
stestr run -e <(echo "
|
||||
subunit2sql.tests.db.test_api.TestDatabaseAPI.test_get_failing_test_ids_from_runs_by_key_value
|
||||
subunit2sql.tests.db.test_api.TestDatabaseAPI.test_get_id_from_test_id
|
||||
subunit2sql.tests.db.test_api.TestDatabaseAPI.test_get_test_run_dict_by_run_meta_key_value
|
||||
subunit2sql.tests.migrations.test_migrations.TestWalkMigrations.test_sqlite_opportunistically
|
||||
subunit2sql.tests.test_shell.TestMain.test_main
|
||||
subunit2sql.tests.test_shell.TestMain.test_main_with_targets
|
||||
")
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "subunit2sql" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Command to Read a subunit file or stream and put the data in a SQL DB";
|
||||
homepage = "https://opendev.org/opendev/subunit2sql";
|
||||
license = licenses.asl20;
|
||||
maintainers = teams.openstack.members;
|
||||
};
|
||||
}
|
@ -8607,6 +8607,8 @@ in {
|
||||
inherit (pkgs) subunit cppunit check;
|
||||
};
|
||||
|
||||
subunit2sql = callPackage ../development/python-modules/subunit2sql { };
|
||||
|
||||
suds-jurko = callPackage ../development/python-modules/suds-jurko { };
|
||||
|
||||
sumo = callPackage ../development/python-modules/sumo { };
|
||||
|
Loading…
Reference in New Issue
Block a user