depot/third_party/nixpkgs/pkgs/development/python-modules/oslo-db/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +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 = "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;
};
}