Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.term-image: init at 0.7.2 #347924

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions pkgs/development/python-modules/term-image/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
pillow,
requests,
urwid,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "term-image";
version = "0.7.2";
pyproject = true;

src = fetchFromGitHub {
owner = "AnonymouX47";
repo = "term-image";
rev = "refs/tags/v${version}";
hash = "sha256-uA04KHKLXW0lx1y5brpCDARLac4/C8VmVinVMkEtTdM=";
};

build-system = [
setuptools
];

dependencies = [
requests
pillow
];

optional-dependencies = {
urwid = [ urwid ];
};

nativeCheckInputs = [
pytestCheckHook
] ++ optional-dependencies.urwid;

disabledTestPaths = [
# test_url needs online access
"tests/test_image/test_url.py"
];

pythonImportsCheck = [ "term_image" ];

meta = {
description = "Display images in the terminal with python";
homepage = "https://github.com/AnonymouX47/term-image";
changelog = "https://github.com/AnonymouX47/term-image/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ liff ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15572,6 +15572,8 @@ self: super: with self; {

tellduslive = callPackage ../development/python-modules/tellduslive { };

term-image = callPackage ../development/python-modules/term-image { };

termcolor = callPackage ../development/python-modules/termcolor { };

termgraph = callPackage ../development/python-modules/termgraph { };
Expand Down