mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-09 19:56:58 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
89 lines
2.1 KiB
Nix
89 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
docker,
|
|
fetchFromGitHub,
|
|
keystoneauth1,
|
|
openstackdocstheme,
|
|
osc-lib,
|
|
oslo-i18n,
|
|
oslo-log,
|
|
oslo-utils,
|
|
pbr,
|
|
prettytable,
|
|
setuptools,
|
|
sphinxHook,
|
|
stestr,
|
|
websocket-client,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-zunclient";
|
|
version = "5.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "openstack";
|
|
repo = "python-zunclient";
|
|
tag = version;
|
|
hash = "sha256-qBpsahkVZEQwsVcNJFtRSJvvxGITauAJ6Zv8p+70hh0=";
|
|
};
|
|
|
|
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://github.com/openstack/python-zunclient";
|
|
description = "Client library for OpenStack Zun API";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "zun";
|
|
teams = [ lib.teams.openstack ];
|
|
};
|
|
}
|