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";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "12.1.0";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "oslo.db";
|
|
|
|
inherit version;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-NekFa19t537lMlld8CX6iG4qstxIN4v11vTobdN8v3Y=";
|
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;
|
|
|
|
};
|
|
|
|
}
|