depot/third_party/nixpkgs/pkgs/development/python-modules/oslo-db/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

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 = "15.1.0";
pyproject = true;
src = fetchPypi {
pname = "oslo.db";
inherit version;
hash = "sha256-FqvjqOYf52zaLwPZx9xZEITRnvYU8xiHvylp7fsg6E4=";
};
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;
};
}