Files
nixpkgs/pkgs/development/python-modules/openstacksdk/default.nix
T
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

85 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
callPackage,
fetchPypi,
platformdirs,
cryptography,
dogpile-cache,
jmespath,
jsonpatch,
keystoneauth1,
munch,
openstackdocstheme,
os-service-types,
pbr,
psutil,
pyyaml,
requestsexceptions,
setuptools,
sphinxHook,
}:
buildPythonPackage rec {
pname = "openstacksdk";
version = "4.8.0";
pyproject = true;
outputs = [
"out"
"man"
];
src = fetchPypi {
inherit pname version;
hash = "sha256-TcA44cF9iTAF86ColRRWr9nRSPP2XUSPlK3M6yeNfzE=";
};
postPatch = ''
# Disable rsvgconverter not needed to build manpage
substituteInPlace doc/source/conf.py \
--replace-fail "'sphinxcontrib.rsvgconverter'," "#'sphinxcontrib.rsvgconverter',"
'';
nativeBuildInputs = [
openstackdocstheme
sphinxHook
];
sphinxBuilders = [ "man" ];
build-system = [ setuptools ];
dependencies = [
platformdirs
cryptography
dogpile-cache
jmespath
jsonpatch
keystoneauth1
munch
os-service-types
pbr
psutil
requestsexceptions
pyyaml
];
# Checks moved to 'passthru.tests' to workaround slowness
doCheck = false;
passthru.tests = {
tests = callPackage ./tests.nix { };
};
pythonImportsCheck = [ "openstack" ];
meta = {
description = "SDK for building applications to work with OpenStack";
mainProgram = "openstack-inventory";
homepage = "https://github.com/openstack/openstacksdk";
license = lib.licenses.asl20;
teams = [ lib.teams.openstack ];
};
}