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

92 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
cliff,
fetchFromGitHub,
keystoneauth1,
openstackdocstheme,
openstacksdk,
osc-lib,
oslo-i18n,
oslo-serialization,
oslo-utils,
oslotest,
osprofiler,
pbr,
pyyaml,
requests-mock,
requests,
setuptools,
sphinxcontrib-apidoc,
sphinxHook,
stestr,
stevedore,
tempest,
}:
buildPythonPackage rec {
pname = "python-mistralclient";
version = "6.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "openstack";
repo = "python-mistralclient";
tag = version;
hash = "sha256-8tB1QPaxdLdti96gOzaXuqLftmTJVM0bosJiKs+0CFs=";
};
env.PBR_VERSION = version;
nativeBuildInputs = [
openstackdocstheme
sphinxHook
sphinxcontrib-apidoc
];
sphinxBuilders = [ "man" ];
build-system = [
setuptools
pbr
];
dependencies = [
cliff
keystoneauth1
osc-lib
oslo-i18n
oslo-serialization
oslo-utils
pbr
pyyaml
requests
stevedore
];
nativeCheckInputs = [
openstacksdk
oslotest
osprofiler
requests-mock
stestr
tempest
];
checkPhase = ''
runHook preCheck
stestr run
runHook postCheck
'';
pythonImportsCheck = [ "mistralclient" ];
meta = {
description = "OpenStack Mistral Command-line Client";
homepage = "https://opendev.org/openstack/python-mistralclient/";
license = lib.licenses.asl20;
mainProgram = "mistral";
teams = [ lib.teams.openstack ];
};
}