2021-09-11 12:13:44 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, alembic
|
|
|
|
, oslo-config
|
|
|
|
, oslo-context
|
|
|
|
, oslo-utils
|
|
|
|
, oslotest
|
|
|
|
, pbr
|
|
|
|
, sqlalchemy
|
2021-10-28 10:59:03 +02:00
|
|
|
, sqlalchemy-migrate
|
2021-09-11 12:13:44 +02:00
|
|
|
, stestr
|
|
|
|
, testresources
|
|
|
|
, testscenarios
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oslo-db";
|
2021-12-07 09:29:37 +01:00
|
|
|
version = "11.1.0";
|
2021-09-11 12:13:44 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "oslo.db";
|
|
|
|
inherit version;
|
2021-12-07 09:29:37 +01:00
|
|
|
sha256 = "8469c54544f1c0d7ac0a998477033eab13733b186d159554311c6132b43862e9";
|
2021-09-11 12:13:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
alembic
|
|
|
|
oslo-config
|
|
|
|
oslo-context
|
|
|
|
oslo-utils
|
|
|
|
sqlalchemy
|
2021-10-28 10:59:03 +02:00
|
|
|
sqlalchemy-migrate
|
2021-09-11 12:13:44 +02:00
|
|
|
testresources
|
|
|
|
testscenarios
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
oslotest
|
|
|
|
stestr
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
stestr run
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "oslo_db" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Oslo Database library";
|
|
|
|
homepage = "https://github.com/openstack/oslo.db";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.openstack.members;
|
|
|
|
};
|
|
|
|
}
|