02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
59 lines
949 B
Nix
59 lines
949 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, alembic
|
|
, oslo-config
|
|
, oslo-context
|
|
, oslo-utils
|
|
, oslotest
|
|
, pbr
|
|
, sqlalchemy
|
|
, sqlalchemy-migrate
|
|
, stestr
|
|
, testresources
|
|
, testscenarios
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oslo-db";
|
|
version = "14.0.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
pname = "oslo.db";
|
|
inherit version;
|
|
hash = "sha256-nAipzYOOv/rSHrMBL64AKg93v5Vpb6RNBbG2OiJ+n8E=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
propagatedBuildInputs = [
|
|
alembic
|
|
oslo-config
|
|
oslo-context
|
|
oslo-utils
|
|
sqlalchemy
|
|
sqlalchemy-migrate
|
|
testresources
|
|
testscenarios
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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;
|
|
};
|
|
}
|