-
-
Notifications
You must be signed in to change notification settings - Fork 15k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythonPackages: Add OpenStack Octavia client and Neutron bindings (#3…
- Loading branch information
Showing
8 changed files
with
313 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
pkgs/development/python-modules/os-client-config/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
fixtures, | ||
hacking, | ||
jsonschema, | ||
openstacksdk, | ||
oslotest, | ||
python-glanceclient, | ||
setuptools, | ||
stestr, | ||
subunit, | ||
testscenarios, | ||
testtools, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "os-client-config"; | ||
version = "2.1.0"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-q8OKNR+MAG009+5fP2SN5ePs9kVcxdds/YidKRzfP04="; | ||
}; | ||
|
||
build-system = [ setuptools ]; | ||
|
||
dependencies = [ | ||
openstacksdk | ||
python-glanceclient | ||
]; | ||
|
||
nativeCheckInputs = [ | ||
hacking | ||
fixtures | ||
jsonschema | ||
subunit | ||
oslotest | ||
stestr | ||
testscenarios | ||
testtools | ||
]; | ||
|
||
checkPhase = '' | ||
runHook preCheck | ||
stestr run | ||
runHook postCheck | ||
''; | ||
|
||
pythonImportsCheck = [ "os_client_config" ]; | ||
|
||
meta = with lib; { | ||
homepage = "https://opendev.org/openstack/os-client-config"; | ||
description = "Collect client configuration for using OpenStack in consistent and comprehensive manner"; | ||
license = licenses.asl20; | ||
maintainers = teams.openstack.members; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
netaddr, | ||
oslo-concurrency, | ||
oslo-serialization, | ||
oslo-utils, | ||
prettytable, | ||
requests, | ||
setuptools, | ||
webob, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "osprofiler"; | ||
version = "4.1.0"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-V4N7YgWBsTREouIFZHddT8c+/2fHiIr5mUftWC/lFLA="; | ||
}; | ||
|
||
build-system = [ setuptools ]; | ||
|
||
dependencies = [ | ||
netaddr | ||
oslo-concurrency | ||
oslo-serialization | ||
oslo-utils | ||
prettytable | ||
requests | ||
webob | ||
]; | ||
|
||
# NOTE(vinetos): OSProfiler depends on jeager-client which use opentracing | ||
# Opentracing and jeager-client are archived since 2022. | ||
# As this package is made only to support old OpenStack clients and bindings, | ||
# We do not really care | ||
doCheck = false; | ||
|
||
pythonImportsCheck = [ "osprofiler" ]; | ||
|
||
meta = with lib; { | ||
description = "OpenStack Library to profile request between all involved services"; | ||
homepage = "https://opendev.org/openstack/osprofiler/"; | ||
license = licenses.asl20; | ||
maintainers = teams.openstack.members; | ||
}; | ||
} |
98 changes: 98 additions & 0 deletions
98
pkgs/development/python-modules/python-neutronclient/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchPypi, | ||
setuptools, | ||
# Build and Runtime | ||
pbr, | ||
cliff, | ||
debtcollector, | ||
iso8601, | ||
netaddr, | ||
openstacksdk, | ||
osc-lib, | ||
oslo-i18n, | ||
oslo-log, | ||
oslo-serialization, | ||
oslo-utils, | ||
os-client-config, | ||
keystoneauth1, | ||
python-keystoneclient, | ||
requests, | ||
hacking, | ||
# Tests | ||
fixtures, | ||
oslotest, | ||
osprofiler, | ||
python-openstackclient, | ||
subunit, | ||
requests-mock, | ||
stestr, | ||
testtools, | ||
testscenarios, | ||
tempest, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "python-neutronclient"; | ||
version = "11.3.1"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-U82ZI/Q6OwdypA41YfdGVa3IA4+QJhqz3gW2IR0S7cs="; | ||
}; | ||
|
||
build-system = [ | ||
setuptools | ||
pbr | ||
]; | ||
|
||
dependencies = [ | ||
cliff | ||
debtcollector | ||
iso8601 | ||
netaddr | ||
openstacksdk | ||
osc-lib | ||
oslo-i18n | ||
oslo-log | ||
oslo-serialization | ||
oslo-utils | ||
os-client-config | ||
keystoneauth1 | ||
python-keystoneclient | ||
requests | ||
]; | ||
|
||
nativeCheckInputs = [ | ||
hacking | ||
fixtures | ||
oslotest | ||
osprofiler | ||
python-openstackclient | ||
subunit | ||
requests-mock | ||
stestr | ||
testtools | ||
testscenarios | ||
tempest | ||
]; | ||
|
||
checkPhase = '' | ||
runHook preCheck | ||
stestr run | ||
runHook postCheck | ||
''; | ||
|
||
pythonImportsCheck = [ "neutronclient" ]; | ||
|
||
meta = with lib; { | ||
description = "Python bindings for the OpenStack Networking API"; | ||
homepage = "https://opendev.org/openstack/python-neutronclient/"; | ||
license = licenses.asl20; | ||
maintainers = teams.openstack.members; | ||
}; | ||
} |
89 changes: 89 additions & 0 deletions
89
pkgs/development/python-modules/python-octaviaclient/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
cliff, | ||
doc8, | ||
docutils, | ||
fetchPypi, | ||
hacking, | ||
keystoneauth1, | ||
openstackclient, | ||
openstackdocstheme, | ||
osc-lib, | ||
oslotest, | ||
oslo-serialization, | ||
oslo-utils, | ||
pbr, | ||
pygments, | ||
python-neutronclient, | ||
requests, | ||
requests-mock, | ||
setuptools, | ||
sphinx, | ||
sphinxcontrib-apidoc, | ||
stestr, | ||
subunit, | ||
testscenarios, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "python-octaviaclient"; | ||
version = "3.7.0"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-wAGxByeRBOwdWZg2DwVpt1yGi5er3KQ/qhyRVAwaKe4="; | ||
}; | ||
|
||
build-system = [ | ||
setuptools | ||
pbr | ||
]; | ||
|
||
nativeBuildInputs = [ | ||
openstackdocstheme | ||
sphinx | ||
sphinxcontrib-apidoc | ||
]; | ||
|
||
dependencies = [ | ||
cliff | ||
keystoneauth1 | ||
python-neutronclient | ||
openstackclient | ||
osc-lib | ||
oslo-serialization | ||
oslo-utils | ||
requests | ||
]; | ||
|
||
nativeCheckInputs = [ | ||
hacking | ||
requests-mock | ||
doc8 | ||
docutils | ||
pygments | ||
subunit | ||
oslotest | ||
stestr | ||
testscenarios | ||
]; | ||
|
||
checkPhase = '' | ||
runHook preCheck | ||
stestr run | ||
runHook postCheck | ||
''; | ||
|
||
pythonImportsCheck = [ "octaviaclient" ]; | ||
|
||
meta = with lib; { | ||
description = "OpenStack Octavia Command-line Client"; | ||
homepage = "https://opendev.org/openstack/python-octaviaclient/"; | ||
license = licenses.asl20; | ||
maintainers = teams.openstack.members; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters