2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, alembic
|
|
|
|
, oslo-config
|
|
|
|
, oslo-context
|
|
|
|
, oslo-utils
|
|
|
|
, oslotest
|
|
|
|
, pbr
|
|
|
|
, sqlalchemy
|
2021-12-06 16:07:01 +00:00
|
|
|
, sqlalchemy-migrate
|
2021-09-18 10:52:07 +00:00
|
|
|
, stestr
|
|
|
|
, testresources
|
|
|
|
, testscenarios
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oslo-db";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "11.1.0";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "oslo.db";
|
|
|
|
inherit version;
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "8469c54544f1c0d7ac0a998477033eab13733b186d159554311c6132b43862e9";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
alembic
|
|
|
|
oslo-config
|
|
|
|
oslo-context
|
|
|
|
oslo-utils
|
|
|
|
sqlalchemy
|
2021-12-06 16:07:01 +00:00
|
|
|
sqlalchemy-migrate
|
2021-09-18 10:52:07 +00: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;
|
|
|
|
};
|
|
|
|
}
|