mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 06:06:32 +01:00
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
about-time,
|
|
buildPythonPackage,
|
|
click,
|
|
fetchFromGitHub,
|
|
graphemeu,
|
|
pytestCheckHook,
|
|
python,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "alive-progress";
|
|
version = "3.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rsalmei";
|
|
repo = "alive-progress";
|
|
tag = "v${version}";
|
|
hash = "sha256-2ymLdmaV7mO6tp5bjmbL/67xLP7Srfpt5m8YhOHGmWQ=";
|
|
# Avoid downloading heavy images in img directory
|
|
sparseCheckout = [
|
|
"alive_progress"
|
|
"tests"
|
|
];
|
|
};
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/doc/python${python.pythonVersion}-$pname-$version/
|
|
mv $out/LICENSE $out/share/doc/python${python.pythonVersion}-$pname-$version/
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
about-time
|
|
graphemeu
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"about_time"
|
|
"graphemeu"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
click
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "alive_progress" ];
|
|
|
|
meta = {
|
|
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/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ thiagokokada ];
|
|
};
|
|
}
|