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

66 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitea,
# build-system
pbr,
# dependencies
oslo-config,
oslo-log,
oslo-utils,
prometheus-client,
# tests
oslotest,
stestr,
}:
buildPythonPackage rec {
pname = "oslo-metrics";
version = "0.11.0";
format = "setuptools";
src = fetchFromGitea {
domain = "opendev.org";
owner = "openstack";
repo = "oslo.metrics";
tag = version;
hash = "sha256-PiMrfVWRV3GQPJ7PnXzhAdTncXcFDPZFd+sMHVr65UU=";
};
env.PBR_VERSION = version;
build-system = [
pbr
];
dependencies = [
oslo-config
oslo-log
oslo-utils
prometheus-client
];
nativeCheckInputs = [
oslotest
stestr
];
checkPhase = ''
runHook preCheck
stestr run
runHook postCheck
'';
pythonImportsCheck = [ "oslo_metrics" ];
meta = {
description = "OpenStack library for collecting metrics from Oslo libraries";
homepage = "https://opendev.org/openstack/oslo.metrics";
license = lib.licenses.asl20;
teams = [ lib.teams.openstack ];
};
}