Merge pull request #299960 from fabaff/asciimatics-refactor

python312Packages.asciimatics: refactor
This commit is contained in:
Fabian Affolter 2024-03-29 18:16:34 +01:00 committed by GitHub
commit fe47020e83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,45 +1,40 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, setuptools-scm
, pyfiglet
, pillow , pillow
, pyfiglet
, pytestCheckHook
, pythonOlder
, setuptools-scm
, wcwidth , wcwidth
, future
, mock
, nose
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "asciimatics"; pname = "asciimatics";
version = "1.15.0"; version = "1.15.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-z905gEJydRnYtz5iuO+CwL7P7U60IImcO5bJjQuWgho="; hash = "sha256-z905gEJydRnYtz5iuO+CwL7P7U60IImcO5bJjQuWgho=";
}; };
nativeBuildInputs = [ build-system = [
setuptools-scm setuptools-scm
]; ];
propagatedBuildInputs = [ dependencies = [
pyfiglet pyfiglet
pillow pillow
wcwidth wcwidth
future
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
mock pytestCheckHook
nose
]; ];
# tests require a pty emulator
# which is too complicated to setup here
doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [
"asciimatics.effects" "asciimatics.effects"
"asciimatics.renderers" "asciimatics.renderers"
@ -48,8 +43,9 @@ buildPythonPackage rec {
]; ];
meta = with lib; { meta = with lib; {
description = "Helps to create full-screen text UIs (from interactive forms to ASCII animations) on any platform"; description = "Module to create full-screen text UIs (from interactive forms to ASCII animations)";
homepage = "https://github.com/peterbrittain/asciimatics"; homepage = "https://github.com/peterbrittain/asciimatics";
changelog = "https://github.com/peterbrittain/asciimatics/releases/tag/${version}";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ cmcdragonkai ]; maintainers = with maintainers; [ cmcdragonkai ];
}; };