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-06-16 17:23:12 +00:00
|
|
|
version = "11.3.0";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "oslo.db";
|
|
|
|
inherit version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-CSlZI05V8p+lCgjPcG6LZi4y2nVNrFhjI95TDM/WJnM=";
|
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;
|
|
|
|
};
|
|
|
|
}
|