2017-09-23 14:08:28 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pbr, six, netaddr, stevedore, mock,
|
2017-09-20 13:52:04 +01:00
|
|
|
debtcollector, rfc3986, pyyaml, oslo-i18n }:
|
2017-06-18 10:47:42 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oslo.config";
|
2017-10-25 19:04:35 +01:00
|
|
|
version = "4.13.2";
|
2017-06-18 10:47:42 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 19:04:35 +01:00
|
|
|
sha256 = "882e5f1dcc0e5b0d7af877b2df0e2692113c5975db8cbbbf0dd3d2b905aefc0b";
|
2017-06-18 10:47:42 +01:00
|
|
|
};
|
|
|
|
|
2017-09-20 13:52:04 +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 = ''
|
2017-08-10 23:02:48 +01:00
|
|
|
substituteInPlace requirements.txt --replace "argparse" ""
|
2017-06-18 10:47:42 +01:00
|
|
|
'';
|
2017-09-05 10:16:41 +01:00
|
|
|
|
2017-09-23 14:08:28 +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
|
|
|
}
|