-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python311Packages.python-{watcherclient,zaqarclient,zunclient}: init (#…
- Loading branch information
Showing
6 changed files
with
263 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
75 changes: 75 additions & 0 deletions
75
pkgs/development/python-modules/python-watcherclient/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,75 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
cliff, | ||
fetchFromGitHub, | ||
keystoneauth1, | ||
openstackdocstheme, | ||
osc-lib, | ||
oslo-i18n, | ||
oslo-serialization, | ||
oslo-utils, | ||
pbr, | ||
pythonOlder, | ||
setuptools, | ||
sphinxcontrib-apidoc, | ||
sphinxHook, | ||
stestr, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "python-watcherclient"; | ||
version = "4.4.0"; | ||
pyproject = true; | ||
|
||
disabled = pythonOlder "3.8"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "openstack"; | ||
repo = "python-watcherclient"; | ||
rev = "refs/tags/${version}"; | ||
hash = "sha256-lDdiZKaeteKZEyfjpBx8KY+0FLFOYAnQXl0pTbqq0Ss="; | ||
}; | ||
|
||
env.PBR_VERSION = version; | ||
|
||
build-system = [ | ||
pbr | ||
setuptools | ||
]; | ||
|
||
nativeBuildInputs = [ | ||
openstackdocstheme | ||
sphinxcontrib-apidoc | ||
sphinxHook | ||
]; | ||
|
||
sphinxBuilders = [ "man" ]; | ||
|
||
dependencies = [ | ||
cliff | ||
keystoneauth1 | ||
osc-lib | ||
oslo-i18n | ||
oslo-serialization | ||
oslo-utils | ||
]; | ||
|
||
nativeCheckInputs = [ stestr ]; | ||
|
||
checkPhase = '' | ||
runHook preCheck | ||
stestr run | ||
runHook postCheck | ||
''; | ||
|
||
pythonImportsCheck = [ "watcherclient" ]; | ||
|
||
meta = { | ||
homepage = "https://opendev.org/openstack/python-watcherclient"; | ||
description = "Client library for OpenStack Watcher API"; | ||
license = lib.licenses.asl20; | ||
mainProgram = "watcher"; | ||
maintainers = lib.teams.openstack.members; | ||
}; | ||
} |
82 changes: 82 additions & 0 deletions
82
pkgs/development/python-modules/python-zaqarclient/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,82 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
ddt, | ||
fetchFromGitHub, | ||
jsonschema, | ||
keystoneauth1, | ||
openstackdocstheme, | ||
osc-lib, | ||
oslo-i18n, | ||
oslo-log, | ||
oslo-utils, | ||
pbr, | ||
pythonOlder, | ||
requests-mock, | ||
requests, | ||
setuptools, | ||
sphinxHook, | ||
stestr, | ||
stevedore, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "python-zaqarclient"; | ||
version = "2.7.0"; | ||
pyproject = true; | ||
|
||
disabled = pythonOlder "3.8"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "openstack"; | ||
repo = "python-zaqarclient"; | ||
rev = "refs/tags/${version}"; | ||
hash = "sha256-WphTlqhrwxg5g88NH1W4b3uLAxLImnS34hDrlJjWeEU="; | ||
}; | ||
|
||
env.PBR_VERSION = version; | ||
|
||
build-system = [ | ||
pbr | ||
setuptools | ||
]; | ||
|
||
nativeBuildInputs = [ | ||
openstackdocstheme | ||
sphinxHook | ||
]; | ||
|
||
sphinxBuilders = [ "man" ]; | ||
|
||
dependencies = [ | ||
jsonschema | ||
keystoneauth1 | ||
osc-lib | ||
oslo-i18n | ||
oslo-log | ||
oslo-utils | ||
requests | ||
stevedore | ||
]; | ||
|
||
nativeCheckInputs = [ | ||
ddt | ||
requests-mock | ||
stestr | ||
]; | ||
|
||
checkPhase = '' | ||
runHook preCheck | ||
stestr run | ||
runHook postCheck | ||
''; | ||
|
||
pythonImportsCheck = [ "zaqarclient" ]; | ||
|
||
meta = { | ||
homepage = "https://opendev.org/openstack/python-zaqarclient"; | ||
description = "Client library for OpenStack Zaqar API"; | ||
license = lib.licenses.asl20; | ||
maintainers = lib.teams.openstack.members; | ||
}; | ||
} |
92 changes: 92 additions & 0 deletions
92
pkgs/development/python-modules/python-zunclient/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,92 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
docker, | ||
fetchFromGitHub, | ||
keystoneauth1, | ||
openstackdocstheme, | ||
osc-lib, | ||
oslo-i18n, | ||
oslo-log, | ||
oslo-utils, | ||
pbr, | ||
prettytable, | ||
pythonOlder, | ||
setuptools, | ||
sphinxHook, | ||
stestr, | ||
websocket-client, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "python-zunclient"; | ||
version = "5.0.0"; | ||
pyproject = true; | ||
|
||
disabled = pythonOlder "3.8"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "openstack"; | ||
repo = "python-zunclient"; | ||
rev = "refs/tags/${version}"; | ||
hash = "sha256-EVfrxSc/eHYZR0FGFnNAxFCiXangt8uRkAC2zpwWqcA="; | ||
}; | ||
|
||
env.PBR_VERSION = version; | ||
|
||
build-system = [ | ||
pbr | ||
setuptools | ||
]; | ||
|
||
nativeBuildInputs = [ | ||
openstackdocstheme | ||
sphinxHook | ||
]; | ||
|
||
sphinxBuilders = [ "man" ]; | ||
|
||
# python-openstackclient is unused upstream | ||
# and will cause infinite recursion in openstackclient-full package. | ||
pythonRemoveDeps = [ "python-openstackclient" ]; | ||
|
||
dependencies = [ | ||
docker | ||
keystoneauth1 | ||
osc-lib | ||
oslo-i18n | ||
oslo-log | ||
oslo-utils | ||
prettytable | ||
websocket-client | ||
]; | ||
|
||
nativeCheckInputs = [ stestr ]; | ||
|
||
checkPhase = '' | ||
runHook preCheck | ||
stestr run -e <(echo " | ||
zunclient.tests.unit.test_shell.ShellTest.test_main_endpoint_internal | ||
zunclient.tests.unit.test_shell.ShellTest.test_main_endpoint_public | ||
zunclient.tests.unit.test_shell.ShellTest.test_main_env_region | ||
zunclient.tests.unit.test_shell.ShellTest.test_main_no_region | ||
zunclient.tests.unit.test_shell.ShellTest.test_main_option_region | ||
zunclient.tests.unit.test_shell.ShellTestKeystoneV3.test_main_endpoint_internal | ||
zunclient.tests.unit.test_shell.ShellTestKeystoneV3.test_main_endpoint_public | ||
zunclient.tests.unit.test_shell.ShellTestKeystoneV3.test_main_env_region | ||
zunclient.tests.unit.test_shell.ShellTestKeystoneV3.test_main_no_region | ||
zunclient.tests.unit.test_shell.ShellTestKeystoneV3.test_main_option_region | ||
") | ||
runHook postCheck | ||
''; | ||
|
||
pythonImportsCheck = [ "zunclient" ]; | ||
|
||
meta = { | ||
homepage = "https://opendev.org/openstack/python-zunclient"; | ||
description = "Client library for OpenStack Zun API"; | ||
license = lib.licenses.asl20; | ||
mainProgram = "zun"; | ||
maintainers = lib.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