60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{ lib
|
|
, about-time
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchFromGitHub
|
|
, grapheme
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "alive-progress";
|
|
version = "3.1.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rsalmei";
|
|
repo = "alive-progress";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-yJhl0QrMHET9ISDc/D5AEQ7dTJkmcV2SWqy/xmG18uY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
about-time
|
|
grapheme
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
click
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"alive_progress"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A 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 ];
|
|
};
|
|
}
|