mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-21 15:30:27 +08:00
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
96 lines
1.5 KiB
Nix
96 lines
1.5 KiB
Nix
{
|
|
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;
|
|
};
|
|
}
|