depot/third_party/nixpkgs/pkgs/development/python-modules/oslo-db/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

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