depot/third_party/nixpkgs/pkgs/development/python-modules/oslo-db/default.nix

69 lines
1 KiB
Nix
Raw Normal View History

{ 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;
};
}