diff --git a/pkgs/development/python-modules/python-mistralclient/default.nix b/pkgs/development/python-modules/python-mistralclient/default.nix new file mode 100644 index 0000000000000..6452fe3063e29 --- /dev/null +++ b/pkgs/development/python-modules/python-mistralclient/default.nix @@ -0,0 +1,95 @@ +{ + lib, + buildPythonPackage, + cliff, + fetchFromGitea, + keystoneauth1, + openstackdocstheme, + os-client-config, + osc-lib, + oslo-i18n, + oslo-serialization, + oslo-utils, + oslotest, + osprofiler, + pbr, + pythonOlder, + pyyaml, + requests-mock, + requests, + setuptools, + sphinxcontrib-apidoc, + sphinxHook, + stestr, + stevedore, + tempest, +}: + +buildPythonPackage rec { + pname = "python-mistralclient"; + version = "5.3.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitea { + domain = "opendev.org"; + owner = "openstack"; + repo = "python-mistralclient"; + rev = version; + hash = "sha256-Vi56+OlFU2Aj7yJ/cH5y0ZbzPhglTciJcTnkbA0S7Qo="; + }; + + 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 = [ + os-client-config + oslotest + osprofiler + requests-mock + stestr + tempest + ]; + + checkPhase = '' + runHook preCheck + stestr run + runHook postCheck + ''; + + pythonImportsCheck = [ "mistralclient" ]; + + meta = with lib; { + description = "OpenStack Mistral Command-line Client"; + homepage = "https://opendev.org/openstack/python-mistralclient/"; + license = licenses.asl20; + mainProgram = "mistral"; + maintainers = teams.openstack.members; + }; +} diff --git a/pkgs/development/python-modules/python-openstackclient/default.nix b/pkgs/development/python-modules/python-openstackclient/default.nix index f78874f9124b0..3f3989283f74f 100644 --- a/pkgs/development/python-modules/python-openstackclient/default.nix +++ b/pkgs/development/python-modules/python-openstackclient/default.nix @@ -13,6 +13,7 @@ python-ironicclient, python-keystoneclient, python-manilaclient, + python-mistralclient, python-neutronclient, python-openstackclient, requests-mock, @@ -74,6 +75,7 @@ buildPythonPackage rec { python-heatclient python-ironicclient python-manilaclient + python-mistralclient python-neutronclient ]; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 322d2cf6b7669..030e8b34b1193 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22971,6 +22971,7 @@ with pkgs; heatclient = with python311Packages; toPythonApplication python-heatclient; ironicclient = with python311Packages; toPythonApplication python-ironicclient; manilaclient = with python311Packages; toPythonApplication python-manilaclient; + mistralclient = with python311Packages; toPythonApplication python-mistralclient; swiftclient = with python311Packages; toPythonApplication python-swiftclient; openvdb = callPackage ../development/libraries/openvdb { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 079d58d61c12d..9d0c8f1966ac6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13008,6 +13008,8 @@ self: super: with self; { python-mimeparse = callPackage ../development/python-modules/python-mimeparse { }; + python-mistralclient = callPackage ../development/python-modules/python-mistralclient { }; + python-mnist = callPackage ../development/python-modules/python-mnist { }; python-mpv-jsonipc = callPackage ../development/python-modules/python-mpv-jsonipc { };