Unverified Commit 96750824 authored by Olli Helenius's avatar Olli Helenius
Browse files

python3Packages.term-image: init at 0.7.2

parent 03b6d7f1
Loading
Loading
Loading
Loading
+56 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 { };