about summary refs log tree commit diff
path: root/pkgs/development/python-modules/oslo-config/default.nix
blob: fce8c21284c7aca9c3613d0b38cac23e01037e38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, buildPythonPackage, fetchPypi, pbr, six, netaddr, stevedore, mock,
debtcollector, rfc3986, pyyaml, oslo-i18n }:

buildPythonPackage rec {
  pname = "oslo.config";
  version = "4.12.0";
  name = "${pname}-${version}";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1pa9lajsadyq47bmxx12dxlcmnqsqlgnb55hwqas26lgnb2073dx";
  };

  propagatedBuildInputs = [ pbr six netaddr stevedore debtcollector rfc3986 pyyaml oslo-i18n ];
  buildInputs = [ mock ];

  # TODO: circular import on oslo-i18n
  doCheck = false;

  postPatch = ''
    substituteInPlace requirements.txt --replace "argparse" ""
  '';

  meta = with lib; {
    description = "Oslo Configuration API";
    homepage = "https://docs.openstack.org/oslo.config/latest/";
    license = licenses.asl20;
    maintainers = with maintainers; [ makefu ];
  };


}