c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
68 lines
1 KiB
Nix
68 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 = "15.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "oslo.db";
|
|
inherit version;
|
|
hash = "sha256-6QJDUgX1xQtw7mNYY8i06lS9Hr4ABpXAZeMN1C2Xb/o=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|