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
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
about-time,
|
|
buildPythonPackage,
|
|
click,
|
|
fetchFromGitHub,
|
|
grapheme,
|
|
pytestCheckHook,
|
|
python,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "alive-progress";
|
|
version = "3.1.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rsalmei";
|
|
repo = "alive-progress";
|
|
tag = "v${version}";
|
|
hash = "sha256-yJhl0QrMHET9ISDc/D5AEQ7dTJkmcV2SWqy/xmG18uY=";
|
|
};
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/doc/python${python.pythonVersion}-$pname-$version/
|
|
mv $out/LICENSE $out/share/doc/python${python.pythonVersion}-$pname-$version/
|
|
'';
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
about-time
|
|
grapheme
|
|
];
|
|
|
|
pythonRelaxDeps = [ "about_time" ];
|
|
|
|
nativeCheckInputs = [
|
|
click
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "alive_progress" ];
|
|
|
|
meta = with lib; {
|
|
description = "New kind of Progress Bar, with real-time throughput, ETA, and very cool animations";
|
|
homepage = "https://github.com/rsalmei/alive-progress";
|
|
changelog = "https://github.com/rsalmei/alive-progress/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ thiagokokada ];
|
|
};
|
|
}
|