Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.0 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
ffmpeg-python,
numpy,
pillow,
pypaInstallHook,
pytestCheckHook,
pythonOlder,
requests,
setuptoolsBuildHook,
}:
buildPythonPackage rec {
pname = "image-go-nord";
version = "1.2.0";
pyproject = false;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Schrodinger-Hat";
repo = "ImageGoNord-pip";
tag = "v${version}";
hash = "sha256-rPp4QrkbDhrdpfynRUYgxpNgUNxU+3h54Ea7s/+u1kI=";
};
nativeBuildInputs = [
pypaInstallHook
setuptoolsBuildHook
];
dependencies = [
ffmpeg-python
numpy
pillow
requests
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "ImageGoNord" ];
meta = {
description = "Tool that can convert rgb images to nordtheme palette";
homepage = "https://github.com/Schrodinger-Hat/ImageGoNord-pip";
changelog = "https://github.com/Schroedinger-Hat/ImageGoNord-pip/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kranzes ];
};
}