mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 09:44:11 +01:00
68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cliff,
|
|
fetchPypi,
|
|
keystoneauth1,
|
|
openstackdocstheme,
|
|
osc-lib,
|
|
oslo-serialization,
|
|
oslo-utils,
|
|
pbr,
|
|
requests,
|
|
setuptools,
|
|
sphinx,
|
|
sphinxcontrib-apidoc,
|
|
callPackage,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-octaviaclient";
|
|
version = "3.13.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "python_octaviaclient";
|
|
inherit version;
|
|
hash = "sha256-Iq1TdXMUDqrE33V+yh8H7yYPIW01NVEa6cPqFPq4Yv4=";
|
|
};
|
|
|
|
# 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
|
|
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 ];
|
|
};
|
|
}
|