python311Packages.imgcat: init at 0.5.0

Imgcat in Python

https://github.com/wookayin/python-imgcat
This commit is contained in:
Fabian Affolter 2024-04-02 10:15:51 +02:00
parent 85f22fecc2
commit 81569bb19e
2 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,59 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, matplotlib
, numpy
, pillow
, pytestCheckHook
, pythonOlder
, setuptools
, tensorflow
, torch
, torchvision
}:
buildPythonPackage rec {
pname = "imgcat";
version = "0.5.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "wookayin";
repo = "python-imgcat";
rev = "refs/tags/v${version}";
hash = "sha256-LFXfCMWMdOjFYhXba9PCCIYnqR7gTRG63NAoC/nD2wk=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "'pytest-runner<5.0'" ""
'';
build-system = [
setuptools
];
nativeCheckInputs = [
matplotlib
numpy
pillow
pytestCheckHook
tensorflow
torch
torchvision
];
pythonImportsCheck = [
"imgcat"
];
meta = with lib; {
description = "Imgcat in Python";
homepage = "https://github.com/wookayin/python-imgcat";
changelog = "https://github.com/wookayin/python-imgcat/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -5637,6 +5637,8 @@ self: super: with self; {
img2pdf = callPackage ../development/python-modules/img2pdf { };
imgcat = callPackage ../development/python-modules/imgcat { };
imgdiff = callPackage ../development/python-modules/imgdiff { };
imgsize = callPackage ../development/python-modules/imgsize { };