Files
nixpkgs/pkgs/development/python-modules/alive-progress/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

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 = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ thiagokokada ];
};
}