mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
927846eeff
The package does not allow pillow v11, but works just fine with it.
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
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 ];
|
|
};
|
|
|
|
pythonRelaxDeps = [ "pillow" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|