mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-18 05:50:23 +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
84 lines
1.4 KiB
Nix
84 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
debtcollector,
|
|
fetchFromGitea,
|
|
jsonschema,
|
|
keystoneauth1,
|
|
openstackdocstheme,
|
|
osc-lib,
|
|
oslo-serialization,
|
|
oslo-utils,
|
|
oslotest,
|
|
pbr,
|
|
pythonOlder,
|
|
requests-mock,
|
|
requests,
|
|
setuptools,
|
|
sphinxHook,
|
|
sphinxcontrib-apidoc,
|
|
stestr,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-designateclient";
|
|
version = "6.1.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "opendev.org";
|
|
owner = "openstack";
|
|
repo = "python-designateclient";
|
|
rev = version;
|
|
hash = "sha256-MwcpRQXH8EjWv41iHxorbFL9EpYu8qOLkDeUx6inEAU=";
|
|
};
|
|
|
|
env.PBR_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
openstackdocstheme
|
|
sphinxHook
|
|
sphinxcontrib-apidoc
|
|
];
|
|
|
|
sphinxBuilders = [ "man" ];
|
|
|
|
build-system = [
|
|
pbr
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
debtcollector
|
|
jsonschema
|
|
keystoneauth1
|
|
osc-lib
|
|
oslo-serialization
|
|
oslo-utils
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
oslotest
|
|
requests-mock
|
|
stestr
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
stestr run
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [ "designateclient" ];
|
|
|
|
meta = {
|
|
homepage = "https://opendev.org/openstack/python-designateclient";
|
|
description = "Client library for OpenStack Designate API";
|
|
license = lib.licenses.asl20;
|
|
maintainers = lib.teams.openstack.members;
|
|
};
|
|
}
|