Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / oslo-db / default.nix
bloba8052d4211c08d780a040f5beea6158a096f7487
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , alembic
5 , oslo-config
6 , oslo-context
7 , oslo-utils
8 , oslotest
9 , pbr
10 , sqlalchemy
11 , sqlalchemy-migrate
12 , stestr
13 , testresources
14 , testscenarios
17 buildPythonPackage rec {
18   pname = "oslo-db";
19   version = "14.0.0";
21   src = fetchPypi {
22     pname = "oslo.db";
23     inherit version;
24     hash = "sha256-nAipzYOOv/rSHrMBL64AKg93v5Vpb6RNBbG2OiJ+n8E=";
25   };
27   nativeBuildInputs = [ pbr ];
29   propagatedBuildInputs = [
30     alembic
31     oslo-config
32     oslo-context
33     oslo-utils
34     sqlalchemy
35     sqlalchemy-migrate
36     testresources
37     testscenarios
38   ];
40   nativeCheckInputs = [
41     oslotest
42     stestr
43   ];
45   checkPhase = ''
46     stestr run
47   '';
49   pythonImportsCheck = [ "oslo_db" ];
51   meta = with lib; {
52     description = "Oslo Database library";
53     homepage = "https://github.com/openstack/oslo.db";
54     license = licenses.asl20;
55     maintainers = teams.openstack.members;
56   };