push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
{
lib,
buildPythonPackage,
fetchPypi,
autopage,
cmd2,
importlib-metadata,
openstackdocstheme,
pbr,
prettytable,
pyparsing,
pyyaml,
setuptools,
stevedore,
sphinxHook,
callPackage,
}:
buildPythonPackage rec {
pname = "cliff";
version = "4.10.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-jB9baCdBoDsMRgfILor0HU6cKFkCRkZWL4bN6ylZqG0=";
};
build-system = [
openstackdocstheme
setuptools
sphinxHook
];
sphinxBuilders = [ "man" ];
dependencies = [
autopage
cmd2
importlib-metadata
pbr
prettytable
pyparsing
pyyaml
stevedore
];
# check in passthru.tests.pytest to escape infinite recursion with stestr
doCheck = false;
pythonImportsCheck = [ "cliff" ];
passthru.tests = {
pytest = callPackage ./tests.nix { };
};
meta = with lib; {
description = "Command Line Interface Formulation Framework";
homepage = "https://github.com/openstack/cliff";
license = licenses.asl20;
teams = [ teams.openstack ];
};
}

View File

@@ -0,0 +1,33 @@
{
buildPythonPackage,
cliff,
sphinx,
stestr,
testscenarios,
}:
buildPythonPackage {
pname = "cliff";
inherit (cliff) version src;
format = "other";
postPatch = ''
# only a small portion of the listed packages are actually needed for running the tests
# so instead of removing them one by one remove everything
rm test-requirements.txt
'';
dontBuild = true;
dontInstall = true;
nativeCheckInputs = [
cliff
sphinx
stestr
testscenarios
];
checkPhase = ''
stestr run
'';
}