2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyfiglet
|
|
|
|
, pillow
|
|
|
|
, wcwidth
|
|
|
|
, future
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asciimatics";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.15.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-z905gEJydRnYtz5iuO+CwL7P7U60IImcO5bJjQuWgho=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-06-04 09:07:49 +00:00
|
|
|
setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyfiglet
|
|
|
|
pillow
|
|
|
|
wcwidth
|
|
|
|
future
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
mock
|
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests require a pty emulator
|
|
|
|
# which is too complicated to setup here
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-11-21 19:51:51 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"asciimatics.effects"
|
|
|
|
"asciimatics.renderers"
|
|
|
|
"asciimatics.scene"
|
|
|
|
"asciimatics.screen"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Helps to create full-screen text UIs (from interactive forms to ASCII animations) on any platform";
|
|
|
|
homepage = "https://github.com/peterbrittain/asciimatics";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ cmcdragonkai ];
|
|
|
|
};
|
|
|
|
}
|