2024-08-20 22:02:24 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3Packages,
|
|
|
|
fetchPypi,
|
|
|
|
}:
|
2020-03-07 18:53:45 +00:00
|
|
|
|
2024-08-20 21:50:08 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-03-07 18:53:45 +00:00
|
|
|
pname = "cbeams";
|
|
|
|
version = "1.0.3";
|
2024-08-20 22:02:24 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-08-20 21:50:08 +00:00
|
|
|
disabled = !python3Packages.isPy3k;
|
2020-03-07 18:53:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-08-20 22:02:24 +00:00
|
|
|
hash = "sha256-8Q2sWsAc39Mu34K1wWOKOJERKzBStE4GmtuzOs2T7Kk=";
|
2020-03-07 18:53:45 +00:00
|
|
|
};
|
|
|
|
|
2024-08-20 22:02:24 +00:00
|
|
|
build-system = [ python3Packages.setuptools ];
|
|
|
|
|
2024-08-20 21:50:48 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace cbeams/terminal.py \
|
|
|
|
--replace-fail "blessings" "blessed"
|
|
|
|
'';
|
|
|
|
|
2024-08-20 22:02:24 +00:00
|
|
|
pythonRemoveDeps = [ "blessings" ];
|
|
|
|
|
|
|
|
dependencies = with python3Packages; [
|
|
|
|
blessed
|
|
|
|
docopt
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # no tests
|
2020-03-07 18:53:45 +00:00
|
|
|
|
2024-08-20 22:02:24 +00:00
|
|
|
meta = {
|
2020-03-07 18:53:45 +00:00
|
|
|
homepage = "https://github.com/tartley/cbeams";
|
|
|
|
description = "Command-line program to draw animated colored circles in the terminal";
|
2024-08-20 22:02:24 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
oxzi
|
|
|
|
sigmanificient
|
|
|
|
];
|
2020-03-07 18:53:45 +00:00
|
|
|
};
|
|
|
|
}
|