Files
nixpkgs/pkgs/development/python-modules/python-manilaclient/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

74 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pbr,
openstackdocstheme,
oslo-config,
oslo-log,
oslo-serialization,
oslo-utils,
prettytable,
requests,
setuptools,
sphinxHook,
sphinxcontrib-programoutput,
babel,
osc-lib,
python-keystoneclient,
debtcollector,
callPackage,
}:
buildPythonPackage rec {
pname = "python-manilaclient";
version = "5.7.0";
pyproject = true;
src = fetchPypi {
pname = "python_manilaclient";
inherit version;
hash = "sha256-ozpvEpIR1DdfG8+7RD0NisDfqa109GtMDEVB+H91uAQ=";
};
build-system = [
openstackdocstheme
setuptools
sphinxHook
sphinxcontrib-programoutput
];
sphinxBuilders = [ "man" ];
dependencies = [
pbr
oslo-config
oslo-log
oslo-serialization
oslo-utils
prettytable
requests
babel
osc-lib
python-keystoneclient
debtcollector
];
# Checks moved to 'passthru.tests' to workaround infinite recursion
doCheck = false;
passthru.tests = {
tests = callPackage ./tests.nix { };
};
pythonImportsCheck = [ "manilaclient" ];
meta = {
description = "Client library for OpenStack Manila API";
mainProgram = "manila";
homepage = "https://github.com/openstack/python-manilaclient";
license = lib.licenses.asl20;
teams = [ lib.teams.openstack ];
};
}