2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, alembic
|
2024-01-25 14:12:00 +00:00
|
|
|
, debtcollector
|
2021-09-18 10:52:07 +00:00
|
|
|
, oslo-config
|
|
|
|
, oslo-context
|
2024-01-25 14:12:00 +00:00
|
|
|
, oslo-i18n
|
2021-09-18 10:52:07 +00:00
|
|
|
, oslo-utils
|
|
|
|
, oslotest
|
|
|
|
, pbr
|
2024-01-25 14:12:00 +00:00
|
|
|
, psycopg2
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2021-09-18 10:52:07 +00:00
|
|
|
, sqlalchemy
|
2024-01-25 14:12:00 +00:00
|
|
|
, stevedore
|
2021-09-18 10:52:07 +00:00
|
|
|
, stestr
|
|
|
|
, testresources
|
|
|
|
, testscenarios
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oslo-db";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "14.1.0";
|
|
|
|
pyproject = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "oslo.db";
|
|
|
|
inherit version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-UFilywqwhXaGnle8K5VNdZqMvhklkTMdHPMDMvz62h8=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
|
|
|
setuptools
|
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
alembic
|
2024-01-25 14:12:00 +00:00
|
|
|
debtcollector
|
2021-09-18 10:52:07 +00:00
|
|
|
oslo-config
|
2024-01-25 14:12:00 +00:00
|
|
|
oslo-i18n
|
2021-09-18 10:52:07 +00:00
|
|
|
oslo-utils
|
|
|
|
sqlalchemy
|
2024-01-25 14:12:00 +00:00
|
|
|
stevedore
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-01-25 14:12:00 +00:00
|
|
|
oslo-context
|
2021-09-18 10:52:07 +00:00
|
|
|
oslotest
|
|
|
|
stestr
|
2024-01-25 14:12:00 +00:00
|
|
|
psycopg2
|
|
|
|
testresources
|
|
|
|
testscenarios
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|