nixpkgs/pkgs/development/python-modules/python-octaviaclient/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

72 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
cliff,
fetchPypi,
keystoneauth1,
makePythonPath,
openstackdocstheme,
installer,
osc-lib,
oslo-serialization,
oslo-utils,
pbr,
python-neutronclient,
requests,
setuptools,
sphinx,
sphinxcontrib-apidoc,
callPackage,
}:
buildPythonPackage rec {
pname = "python-octaviaclient";
version = "3.12.0";
pyproject = true;
src = fetchPypi {
pname = "python_octaviaclient";
inherit version;
hash = "sha256-5brfxkpJQousEcXl0YerzYDjrfl0XyWV0RXPTz146Y4=";
};
# NOTE(vinetos): This explicit dependency is removed to avoid infinite recursion
pythonRemoveDeps = [ "python-openstackclient" ];
build-system = [
setuptools
pbr
];
nativeBuildInputs = [
openstackdocstheme
sphinx
sphinxcontrib-apidoc
];
dependencies = [
cliff
keystoneauth1
python-neutronclient
osc-lib
oslo-serialization
oslo-utils
requests
];
# Checks moved to 'passthru.tests' to workaround infinite recursion
doCheck = false;
passthru.tests = {
tests = callPackage ./tests.nix { };
};
pythonImportsCheck = [ "octaviaclient" ];
meta = {
description = "OpenStack Octavia Command-line Client";
homepage = "https://github.com/openstack/python-octaviaclient";
license = lib.licenses.asl20;
teams = [ lib.teams.openstack ];
};
}