depot/third_party/nixpkgs/pkgs/development/python-modules/oslo-db/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

57 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.0.0";
src = fetchPypi {
pname = "oslo.db";
inherit version;
sha256 = "0cd5679868c0a0d194c916cc855348890820c3183b34a039af1e8698dac7afbf";
};
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;
};
}