nixpkgs/pkgs/development/python-modules/oslo-config/default.nix

33 lines
833 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, pbr, six, netaddr, stevedore, mock,
debtcollector, rfc3986, pyyaml, oslo-i18n }:
2017-06-18 10:47:42 +01:00
buildPythonPackage rec {
pname = "oslo.config";
version = "4.12.0";
2017-06-18 10:47:42 +01:00
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1pa9lajsadyq47bmxx12dxlcmnqsqlgnb55hwqas26lgnb2073dx";
2017-06-18 10:47:42 +01:00
};
propagatedBuildInputs = [ pbr six netaddr stevedore debtcollector rfc3986 pyyaml oslo-i18n ];
2017-06-18 10:47:42 +01:00
buildInputs = [ mock ];
# TODO: circular import on oslo-i18n
doCheck = false;
postPatch = ''
substituteInPlace requirements.txt --replace "argparse" ""
2017-06-18 10:47:42 +01:00
'';
meta = with lib; {
description = "Oslo Configuration API";
homepage = "https://docs.openstack.org/oslo.config/latest/";
license = licenses.asl20;
maintainers = with maintainers; [ makefu ];
};
2017-06-18 10:47:42 +01:00
}