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

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
netaddr,
oslo-concurrency,
oslo-config,
oslo-serialization,
oslo-utils,
prettytable,
requests,
setuptools,
webob,
}:
buildPythonPackage rec {
pname = "osprofiler";
version = "4.3.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-d6jaKyO7X5BIBUvVzMRdCshFdMqKiO8SC4+sbohk4kw=";
};
build-system = [ setuptools ];
dependencies = [
netaddr
oslo-concurrency
oslo-config
oslo-serialization
oslo-utils
prettytable
requests
webob
];
# NOTE(vinetos): OSProfiler depends on jeager-client which use opentracing
# Opentracing and jeager-client are archived since 2022.
# As this package is made only to support old OpenStack clients and bindings,
# We do not really care
doCheck = false;
pythonImportsCheck = [ "osprofiler" ];
meta = {
description = "OpenStack Library to profile request between all involved services";
homepage = "https://opendev.org/openstack/osprofiler/";
license = lib.licenses.asl20;
mainProgram = "osprofiler";
teams = [ lib.teams.openstack ];
};
}