f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
69 lines
1 KiB
Nix
69 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
alembic,
|
|
debtcollector,
|
|
oslo-config,
|
|
oslo-context,
|
|
oslo-i18n,
|
|
oslo-utils,
|
|
oslotest,
|
|
pbr,
|
|
psycopg2,
|
|
setuptools,
|
|
sqlalchemy,
|
|
stevedore,
|
|
stestr,
|
|
testresources,
|
|
testscenarios,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oslo-db";
|
|
version = "16.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "oslo.db";
|
|
inherit version;
|
|
hash = "sha256-8bNUjR8eEfLYEZfBwXix0lO2A474iDYdMQp2Aa7BfoE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pbr
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
alembic
|
|
debtcollector
|
|
oslo-config
|
|
oslo-i18n
|
|
oslo-utils
|
|
sqlalchemy
|
|
stevedore
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
oslo-context
|
|
oslotest
|
|
stestr
|
|
psycopg2
|
|
testresources
|
|
testscenarios
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|