nixpkgs/pkgs/development/python-modules/oslo-db/default.nix
2021-12-07 00:51:47 -08:00

58 lines
933 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 = "11.1.0";
src = fetchPypi {
pname = "oslo.db";
inherit version;
sha256 = "8469c54544f1c0d7ac0a998477033eab13733b186d159554311c6132b43862e9";
};
nativeBuildInputs = [ pbr ];
propagatedBuildInputs = [
alembic
oslo-config
oslo-context
oslo-utils
sqlalchemy
sqlalchemy-migrate
testresources
testscenarios
];
checkInputs = [
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;
};
}